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.

10 {
source.current = 1
tables = tt_content

Add the following nodes under it:

<proc type="array">
ifEmpty {
cObject =< lib.sidebarDefaultContent

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