[TYPO3-english] A boolean expression has more than tree parts ?
Jost Baron
jost.baron at gmx.de
Fri Nov 20 08:28:08 CET 2015
Hi Wiechert,
<!-- ... --> does NOT disable fluid processing (one might want to print
comments, like <!-- TYPO3SEARCH_begin -->.
You need to use <f:comment> ... </f:comment> instead.
Regards,
Jost
On 19.11.2015 15:26, "HocomAdvies [ 🌷 Wiechert Hooghwinkel ]" wrote:
> 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