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 Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check 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

DEV 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

image

  • 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.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2