[TYPO3-ttnews] How to render category rootline when using sys_category?

Bert Hiddink [BENDOO e-work solutions] hiddink at bendoo.nl
Fri Nov 14 17:03:06 CET 2014


Hello,

According this example:
http://docs.typo3.org/typo3cms/extensions/news/Main/Tutorial/Snippets/Index.html...

I noticed that if I use this on News->detail, it only gives me the 
root-category, not the complete root-line, that is, "root-cat", instead 
of "root-cat->sub-cat, sub-subcat"...

Any idea what is going wrong here?

Thanks in advance!

Regards,
Bert

<f:if condition="{category:newsItem.firstCategory}">
         <ul class="category-breadcrumb">
                 <f:render section="categoryBreadcrumb" 
arguments="{category:newsItem.firstCategory}" />
         </ul>
</f:if>

<f:section name="categoryBreadcrumb">
         <f:if condition="{category}">
                 <f:if condition="{category.parentCategory}">
                         <f:render section="categoryBreadcrumb" 
arguments="{category:category.parentCategory}" />
                 </f:if>
                 <li>{category.title}</li>
         </f:if>
</f:section>


More information about the TYPO3-project-tt-news mailing list