Same Problem with Path but I can not lose it

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
giovinco
Posts: 2
Joined: 05 Aug 2016, 15:17

Same Problem with Path but I can not lose it

Post 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

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

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

Post by aimeos » 05 Aug 2016, 17:29

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

giovinco
Posts: 2
Joined: 05 Aug 2016, 15:17

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

Post 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_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

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

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

Post 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 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).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply