Search code examples
typo3fluidtx-news

TYPO3 - How to check if a news article has a certain parent category with fluid


How can I check that a news article has a certain parent category in m'y Fluid template?


Solution

  • Maybe this can help :

    <f:for each="{newsItem.categories}" as="category">
        <f:if condition="{category.parent.uid} == theCatIdYouAreSearchingFor">
            do your stuff here...
        </f:if>
    </f:for>