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)
#3171 by giovinco
05 Aug 2016, 15:38
Hello,

I've got the extension from you extension Builder and copied the templates I need under the order like:
typo3conf/ext/my_aimeos/Resources/Private/Extensions/ai-client-html/client/html/templates/catalog/lists/items-body-default.php

my Problem is when I want to use this file two times (one default list and one for carousel list) I copied the file and renamed it into:
typo3conf/ext/my_aimeos/Resources/Private/Extensions/ai-client-html/client/html/templates/catalog/lists/items-body-slider.php

my TS Configuration ist:
client/html/catalog/list/items/default/template-body = catalog/lists/items-body-slider.html

But in Frontend I have Error...so can you please tell me whats gone wrong?
Thank you very much and of course for the top Job

Regards
Gio
#3183 by giovinco
08 Aug 2016, 14:50
aimeos wrote:
giovinco wrote:client/html/catalog/list/items/default/template-body = catalog/lists/items-body-slider.html


In TYPO3 the configuration path separators are "." not "/":
https://aimeos.org/docs/TYPO3/Change_configuration#Frontend


Thank you for the Answer...I forgot that TS is only with "."..my foul..was very on stress :))

I adjusted it from :
client/html/catalog/list/items/default/template-body = client/html/catalog/lists/slider/
TO:
plugin.tx_aimeos.settings.client.catalog.lists.default.template-body = client/html/catalog/lists/slider/

There is no Error on frontend but the main "default" html is showen. Can you please tell me what is the right path?
Thank you very and have nice evening
Gio
#3187 by aimeos
09 Aug 2016, 17:39
The configuration (keep care about the "standard", not "default") must point to your new PHP template, e.g.
Code: Select allplugin.tx_aimeos.settings.client.catalog.lists.standard.template-body = client/html/catalog/lists/body-slider.php


If you only want to overwrite the existing template because you won't use it at all, you can simply create a file with the same name in your project-specific extension (client/html/templates/catalog/lists/ folder).