How to Access GrapesJS Component Settings?
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 48
- Joined: 30 Apr 2023, 12:46
How to Access GrapesJS Component Settings?
What is the easiest way to access GrapesJS Component settings in this script: ./templates/client/html/cms/page/cataloglist/list.php? like as follows :
Code: Select all
$enc->getSettings('limit') // = 10
$enc->getSettings('List type') // = 'Default' OR 'Promotion'
Re: How to Access GrapesJS Component Settings?
They are only in the PHP class, not in the template so you have to overwrite the class:
https://github.com/aimeos/ai-cms-grapes ... #L107-L115
https://github.com/aimeos/ai-cms-grapes ... #L107-L115
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star