Typo3 fluid: Check if a page ID is active or visible

/ November 22, 2017/ Typo3

(Last Updated On: February 12, 2018) There is no direct way to this with fluid, but there is a workaround that we can use. We just need to try to make a URI with f:uri.page , this will return an empty string if the id is not active. In the Fluid World an empty string is “false”.

Ad:


<f:if condition="{f:uri.page(pageUid: 115)}">
    <f:then>
            The page with id 115 is visible.
    </f:then>
    <f:else>
        The page with id 115 is NOT visible. I will show something else.
    </f:else>
</f:if>
Spread the love

Leave a Reply

avatar
  Subscribe  
Notify of