[TYPO3-english] Remove csc-default wrap for my plugin
Viktor Livakivskyi
invisible.kinder at gmail.com
Wed Feb 13 11:46:11 CET 2013
Hi, Sergio.
Hmm... Never tried this before, but according to typo3wizard [1] you can
combine conditions. But only way, I can imagine in this situation, is
something, like:
tt_content.stdWrap.innerWrap.cObject.default.if {
equals.field = list_type
value = my_own_plugin
negate.if {
# additional condition here
}
}
But, unfortunately, 'negate' doesn't have stdWrap properties and it is
simple boolean.
Maybe, someone esle in this list may point you up - I'd like to see a
solution as well, since it is quite interesting situation.
[1]: http://www.typo3wizard.com/en/snippets/cool-stuff-typoscript/if-conditions-with-and-and-or-operators.html
Hi all,
>
> thank you for your suggestions. I finally made this, as you Viktor have
> suggested now:
>
> tt_content.stdWrap.innerWrap.cObject.default.if {
> equals.field = list_type
> value = my_own_plugin
> negate = 1
> }
>
> But the problem is I would like to add another condition: the
> div.csc-default wrap is only removed when this plugin (my_own_plugin) is
> empty, let's say, when "bodytext" is NULL. Could I add another condition
> to
> this TS? (My TS knowledge is not really good)
>
> I've added my own <div class="csc-default"> inside my partial html just in
> case the plugin is not empty, but I just don't wanna do that. I prefer to
> have cleaner code :-)
>
More information about the TYPO3-english
mailing list