[TYPO3-english] conditional hide of a certain content element
katja.lampela at lieska.net
Tue Feb 14 16:02:56 CET 2012
I'm trying to approach this now from different angle using content element's tab Appearance and field "Indentation and frames".
I know I can add a class to an element with this, but is there a way to completely stop render an element with this?
In my page's tsconfig I have
removeItems = 1,5,6,10,11,12,20,21 //this is not relevant here
addItems.100 = Hide if mobile device
and normally - when I want to add a class to a CE - in template setup I would have
100 < tt_content.stdWrap.innerWrap.cObject.default
100.15.value = myclass
Now I want to override the whole content rendering of this content element and instead have nothing there, so I try this, with no effect:
100 < tt_content.stdWrap.innerWrap.cObject.default //removing this doesn't help
100.10.value = //removing these don't help
100.10 > //or this way, no help
Do you know if it's even possible
*not to render certain object based on a condition*
11.2.2012 15:18, Katja Lampela kirjoitti:
> 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
> page.10.marks.colNormal.select.andWhere.uid.79 >
More information about the TYPO3-english