[Typo3-dev] news plugin, hiding if empty

Claus Bruun claus at clausbruun.dk
Tue May 11 10:44:05 CEST 2004


Hi list.

My problem is that im using custom wrapping of the right column content
element like this:

----snip----------

# WRAPPING FOR RIGHT CONTENT ELEMENTS
mainPage.10.subparts.CONTENT_RIGHT.renderObj.text.10.wrap = (some html)
    |
(some html)
mainPage.10.subparts.CONTENT_RIGHT.renderObj.text.20.wrap = (some html) |
(some html)

# COPY TO TT_NEWS CONTENT ELEMENT
mainPage.10.subparts.CONTENT_RIGHT.renderObj.list.10.wrap <
mainPage.10.subparts.CONTENT_RIGHT.renderObj.text.10.wrap

----snip----------


Now when there isnt any news items in the right column tt_news plugin (its
the frontpage
teaser), then i would like to hide the header of the content element
containing the tt_news plugin.
(The body of that content element is hidden already when there is no news
items to show, so the header just kind of hangs there, and it looks bad.)

I have tried with ifEmpty, numRows, Required, if, etc. but i cant seem to
get it right.

Basicly (i think) its just to check if there are any content in
mainPage.10.subparts.CONTENT_RIGHT.renderObj.text.20
or
mainPage.10.subparts.CONTENT_RIGHT.renderObj.list.20
i guess, but after trying for a week i ran out of ideas on how to do it,
and still no success...

Any help is appreciated.

Regards,
Claus








More information about the TYPO3-dev mailing list