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)
#1979 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
#1980 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/Core/client/html/catalog/list/items/default/template-body
#1981 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.
#1983 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).