[Typo3] fce do not render if empty

Sacha Vorbeck info at unlimited-vision.net
Thu Nov 3 20:03:02 CET 2005


Hi,

> I have made some FCEs for example with header-field and bodytext-field.
> How can I suppress rendering of fields if they are empty (no text was
> inserted in backend)? Or even suppress rendering of anything, if every
> field is left empty?

choose mapping type outer. The HTML-elements from your template won`t be
rendered then. Use TS inside of your datastructure to render the
elements depending on the input made in the fields.

Examples:
http://wiki.typo3.org/index.php/TemplaVoila

-- 
hth,
Sacha



More information about the TYPO3-english mailing list