How to Access GrapesJS Component Settings?

How to configure and adapt Aimeos based shops as developer
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!
alababdiy
Posts: 40
Joined: 30 Apr 2023, 12:46

How to Access GrapesJS Component Settings?

Post by alababdiy » 23 Nov 2023, 10:58

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'
Image

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: How to Access GrapesJS Component Settings?

Post by aimeos » 26 Nov 2023, 09:27

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply