[TYPO3-commerce] Different templates for different categories?
Morten Olesen
mo at idefa.dk
Thu Oct 29 08:11:25 CET 2009
Hi Oberhauser,
While you seem to have solved your problem I thought it might be worth
mentioning why you category ts didn't work - so if anybody searches for
a similar issue they will learn what is wrong.
Everything you put in the "category typoscript" box must be contained in
catTS{
}
any values specified inside catTS will override the conf array of pi1 -
so in your case you should have written
catTS{
templateFile = fileadmin/templates/commerce/category_product_2.html
}
Do how ever notice that categoryTS isn't inherited by sub categories, so
it is specific to the category where you specified it.
/Morten Olesen
Oberhauser Stefan wrote:
> Hello,
>
> Is it possible to use different templates for different categories on the
> same level? (A similar issue was already discussed in January 2009 on this
> list), Ingo Schmitt said to use Category Typoscript.
>
> I tried to use "Category Typoscript" in the category properties.
>
> 1) This is in the TypoScript-Setup for all categories:
> plugin.tx_commerce_pi1.templateFile =
> fileadmin/templates/commerce/category_product_1.html
>
> 2) For the other category with the other template I used this in "Category
> Typoscript":
> plugin.tx_commerce_pi1.templateFile =
> fileadmin/templates/commerce/category_product_2.html
>
> It seems to be simple. I thought, this would be like an extension template,
> but it has no effect at all.
> I am new on this list. I hope if anybody has an idea what's wrong or how I
> could manage this, please give me a hint.
>
> Stefan Oberhauser
>
More information about the TYPO3-project-commerce
mailing list