Get support for PululuK/democmscustomfields17
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
PululuK/democmscustomfields17
democmscustomfields17
Demo cms custom field PS 17
This module is an architectural skeleton for module developers, who want to add custom fields in the cms page on the backoffice. It's a base, you have to adapt it to your needs ... This will save you a lot of time!
Requirements
- Prestashop >= 1.7.x
- composer >= 1.10.1
Install
BO Install
- Donwload the last release here https://github.com/PululuK/democmscustomfields17/releases
- Go to BO > Improvement > Modules catalogue and install
DEV install
-
cd
your_shop_root_dir/modules -
git
https://github.com/PululuK/democmscustomfields17.git -
cd
democmscustomfields17 -
composer
install - Go to BO > Improvement > Modules catalogue and install
How to use ?
-
1 : Update DB schema
Update the table schema (add or remove fields the custom fields) see here
NOTE : put the multilang fields in democmscustomfields17_lang
table.
-
2 : Update the model
Update the model (add or remove fields the custom fields) see here
-
3 : Update the Form
Update the form (add or remove fields the custom fields) see here
-
4 : Acces data in FRONT
JS
console.log(prestashop.modules.democmscustomfields17.your_field_name);
Smarty
{$modules.democmscustomfields17.your_field_name}
NOTE : this data is accessible only in the cms pages controller. You can access them outside this controller as follows
<?php
$params = [
'id_cms' => 10,
'id_lang' => 1,
'id_shop' => 3,
];
$myCmsCustomDatas = (new \PrestaShop\Module\Democmscustomfields17\Form\Cms\FormDataHandler())->getData($params);
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2