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

"HocomAdvies [  Wiechert Hooghwinkel "HocomAdvies [  Wiechert Hooghwinkel
Fri Nov 20 10:08:41 CET 2015


Jost, 

Thanks, your right. The part that was between the <!— … —> has been processed as wel and the output is visible as a comment. Good to be aware of that :)

Regards,
Wiechert.


> Op 20 nov. 2015, om 08:28 heeft Jost Baron <jost.baron at gmx.de> het volgende geschreven:
> 
> 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
>> 
> 
> _______________________________________________
> 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