[TYPO3-english] A boolean expression has more than tree parts ?
Ralf-Rene Schröder
ralf.rene at online.de
Thu Nov 19 14:13:04 CET 2015
and WHY you have {data.subtitle} in your first condition ???
remove it, and imho all would be OK
Am 19.11.2015 um 14:07 schrieb "HocomAdvies [ 🌷 Wiechert Hooghwinkel ]":
> I try to use a viewhelper in a template but I get #1244201848: A boolean expression has more than tree parts. in return.
>
>
> <f:if condition="{data.subtitle} {data.uid} ==1">
> <f:then>Show Nothing</f:then>
> <f:else>
> <f:if condition="{data.subtitle}">
> <f:then><f:format.html><h2>{data.subtitle}</h2></f:format.html></f:then>
> <f:else><h1>{pageTitle}</h1></f:else>
> </f:if>
> </f:else>
> </f:if>
>
>
> First condition:
> if the page pid = 1 than do not nothing.
> else if the pid is higher than 1 and there is a subtitle
> than use that
> else use the pageTitle
>
>
> So the part from the second condition is working. But combined with the data.uid it gives the error. What’s wrong here?
--
image[FORMAT] - Ralf-René Schröder
http://www.image-format.eu ... Wir geben Ihrem Image das richtige Format
More information about the TYPO3-english
mailing list