[Neos] show content in template if path exists
    Henjo Hoeksma 
    henjo at simplyadmire.com
       
    Fri Nov 14 14:23:12 CET 2014
    
    
  
On 2014-11-14 13:01:06 +0000, Tina Eckhorst said:
> Hi,
> 
> is there a way to check in the template if a content path exists and 
> only show the content if it does?
> 
> Something like this:
> <f:if condition="{content.teaser}">
>   {content.teaser -> f:format.raw()}
> </f:if>
> 
> I'm new to Neos and not quite sure how to handle this.
> Thanks!
Hi Tina,
this if statement looks perfectly healthy to me...
See the wiki for some details too: 
http://wiki.typo3.org/Fluid#f:if.2C_f:then.2C_f:else
Oh, and welcome! Please give us your feedback!
-- 
Kinds regards,
Henjo
    
    
More information about the Neos
mailing list