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
}