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

/ November 22, 2017/ Typo3

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 fluid world an empty string is “false”.

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



Spread the love

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>