Catalog List Component: Unable to Save Custom Field and Rendering Issue
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!
Catalog List Component: Unable to Save Custom Field and Rendering Issue
I tried to add a custom field to the catalog list component. I added traits to cataloglist.js:
In ./src/Client/Html/Cms/Page/Cataloglist/Standard.php (i override successfully!):
The new catalog list component field is not savable and also not rendering on ./templates/client/html/cms/page/cataloglist/list.php.
Code: Select all
{
type: 'select',
label: 'Show Style',
name: 'style',
options: [
{ id: 'grid', name: 'grid' },
{ id: 'scroll', name: 'scroll' },
]
}
In ./src/Client/Html/Cms/Page/Cataloglist/Standard.php (i override successfully!):
Code: Select all
$style = $node->hasAttribute( 'style' ) ? $node->getAttribute( 'style' ) : 'grid';
// ...
$tview->style = $style;
Re: Catalog List Component: Unable to Save Custom Field and Rendering Issue
"style" will definitely interfere with the HTML style attribute. Use something else like "liststyle".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
![Image](https://aimeos.org/fileadmin/aimeos.org/icons/star.png)