Schnellzugriff » 
Home 
« Converting MBR Partition Tables to GPT wget untar on the fly »

TemplaVoilà: Default content for empty fields

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 example a RECORDS object:

lib.sidebarDefaultContent = RECORDS
lib.sidebarDefaultContent {
tables = tt_content
source = 93, 95
}

Freitag, November 26th, 2010 and is filed under TypoScript. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.


© 2007 - 2009 Thorsten Boock