Page 1 of 1

Several Templates for catalog list

Posted: 12 Oct 2015, 16:29
by stephan
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

Re: Several Templates for catalog list

Posted: 12 Oct 2015, 16:35
by aimeos
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

Re: Several Templates for catalog list

Posted: 13 Oct 2015, 14:58
by stephan
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.

Re: Several Templates for catalog list

Posted: 13 Oct 2015, 21:20
by aimeos
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).