Schnellzugriff » 
Home 
TypoScript

TemplaVoilà: Default content for empty fields

Freitag, November 26th, 2010

Thanks to stdWrap doing this is quite easy:
Edit the TemplaVoilà datastructure, search the field you want to fill with default content if it’s empty and look for it’s TypoScript configuration:
<TypoScript>
10 = RECORDS
10 {
source.current = 1
tables = tt_content
}
</TypoScript>
Add the following nodes under it:
<proc type=”array”>
<stdWrap><![CDATA[
ifEmpty {
cObject =< lib.sidebarDefaultContent
}
]]></stdWrap>
</proc>
lib.sidebarDefaultContent can be any content object of your choice, for [...]

Posted in TypoScript | Kommentare deaktiviert>

© 2007 - 2009 Thorsten Boock