Hi,
I have created templates for use with different categories. Each content item exists in all categories. The idea is I need a number of different item views for printing different versions of the same item.
The category that uses the default template set in the content type is working fine.
However, when I form a link to a secondary category, I get unexpected results. The category view uses the template defined in the category. But, when I click on the link I have made to view the item, the item view reverts to the default template set in the content item.
I form the link like this :-
<a class="fc_item_title" href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug)); ?>">view this listing >
Here is an example of the category and item working :-
192.185.157.116/~schoolie/yacht/newhome.html
Here is an example of a secondary category where the category view uses the template set in the category parameters but where the item view reverts to the default template.
192.185.157.116/~schoolie/yacht/legal.html
all of the category and item views have the template name echoed at the top of the page so its easy to see the template switching between the two views.
I have authorized the templates in the content type.
I have cleared all caches and the problem persists.
any help would be really gratefully received, i can provide admin logins.