Page 1 of 1

Same Problem with Path but I can not lose it

Posted: 05 Aug 2016, 15:38
by giovinco
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

Re: Same Problem with Path but I can not lose it

Posted: 05 Aug 2016, 17:29
by aimeos
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_co ... n#Frontend

Re: Same Problem with Path but I can not lose it

Posted: 08 Aug 2016, 14:50
by giovinco
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_co ... n#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

Re: Same Problem with Path but I can not lose it

Posted: 09 Aug 2016, 17:39
by aimeos
The configuration (keep care about the "standard", not "default") must point to your new PHP template, e.g.

Code: Select all

plugin.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).