[TYPO3-english] A boolean expression has more than tree parts ?

"HocomAdvies [  Wiechert Hooghwinkel "HocomAdvies [  Wiechert Hooghwinkel
Thu Nov 19 15:26:45 CET 2015


Thanks, it was indeed working and leaving out the first {data.subtitle} helped as well .  I grayed out some lines for testing with # instead of <!— —> I think that was the reason for the Boolean error :)

Regards,

Wiechert Hooghwinkel.



> Op 19 nov. 2015, om 14:13 heeft Ralf-Rene Schröder <ralf.rene at online.de> het volgende geschreven:
> 
> 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
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list