[TYPO3-english] conditional hide of a certain content element

Sergey Alexandrov serg at alexandrov.us
Wed Feb 15 23:31:56 CET 2012


Katja,

Just made a test. Setup:

page.10.subparts.PAGE_CONTENT=COA
page.10.subparts.PAGE_CONTENT{
5=LOAD_REGISTER
5.maxImageWidthInText=260
5.maxImageWidth=540
10<styles.content.get
15=RESTORE_REGISTER
}

// Display CE with uid=131 depending on some GP var
[globalVar = GP:tx_browser_pi1|showUid > 0]
page.10.subparts.PAGE_CONTENT.10.select.andWhere=uid=131
[end]

Above рендерс ONLY CE with uid=131, if changed to:

page.10.subparts.PAGE_CONTENT.10.select.andWhere=uid!=131

it renders all CEs except the one with uid=131

Cheers

On 2/14/2012 10:20 AM, Katja Lampela wrote:
> Hi Jan,
> and thanks, but this has no effect either. And yes you assume right :)
> - Katja
>
> 14.2.2012 17:11, Jan Bednarik kirjoitti:
>> Hi Katja,
>>
>> try this:
>>
>> page.10.marks.colNormal.select.where = colPos=0 AND uid<>79
>>
>> I assume that somewhere before this statement you have
>>
>> page.10.marks.colNormal < styles.content.get
>>
>> Regards
>>
>> Jan
>>
>> Dne 14.2.2012 14:09, Katja Lampela napsal(a):
>>> Hi and thanks Loek,
>>> but it has no effect.
>>> - Katja
>>>
>>> 12.2.2012 1:29, Loek Hilgersom kirjoitti:
>>>> Hi Katja,
>>>>
>>>> Try this:
>>>> page.10.marks.colNormal.select.andWhere = uid!=79
>>>>
>>>> Loek
>>>>
>>>> On 02/11/2012 02:18 PM, Katja Lampela wrote:
>>>>> Hi,
>>>>>
>>>>> I'm trying to find a way to hide certain content element, if visitor
>>>>> meets
>>>>> certain conditions. The content I want to hide is in colNormal and
>>>>> it's id is 79.
>>>>>
>>>>> This does not work
>>>>>
>>>>> [thecondition]
>>>>> page.10.marks.colNormal.select.andWhere.uid.79 >
>>>>> [global]
>>>>>
>>
> _______________________________________________
> 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