Several Templates for catalog list

Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules
Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
stephan
Posts: 3
Joined: 12 Oct 2015, 16:24

Several Templates for catalog list

Post by stephan » 12 Oct 2015, 16:29

Hello,
I would like to show products within a slider.
I created an extension and I am able to see the changes in items-body-default.html but these changes are global because they override the original file.

Is it possible to select a template within a TYPO3 plugin, e.g. within catalog list so that I can show a product list or a slider?

Thanks in advance

Regards
Stephan

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

Re: Several Templates for catalog list

Post by aimeos » 12 Oct 2015, 16:35

stephan wrote: Is it possible to select a template within a TYPO3 plugin, e.g. within catalog list so that I can show a product list or a slider?
Sure, rename your new template to e.g. items-body-slider.html and configure the template via the TS config field in the "catalog list" plugin:
https://aimeos.org/docs/Configuration/C ... plate-body

stephan
Posts: 3
Joined: 12 Oct 2015, 16:24

Re: Several Templates for catalog list

Post by stephan » 13 Oct 2015, 14:58

Thank you very much. It is working now.

As an improvement it would be great I could define only one path in typoscript template like this
client.html.catalog.listslider = catalog/list/slider/
Then copy all files below list to this new folder.
The new defined list template should be selectable in a select box like in EXT:news.

Thank you very much.

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

Re: Several Templates for catalog list

Post by aimeos » 13 Oct 2015, 21:20

stephan wrote: As an improvement it would be great I could define only one path in typoscript template like this
client.html.catalog.listslider = catalog/list/slider/
Then copy all files below list to this new folder.
The new defined list template should be selectable in a select box like in EXT:news.
We will keep that in mind but things are a bit more difficult because there can be several folders where templates are stored (each extension can have one).

Post Reply