I’m using cbGetFieldContent to retrieve a ContentBlocks field within a getResources chunk. If the field is empty, I want to default to a second field. This is what I have:
[[cbGetFieldContent:ellipsis=`500`?
&field=`26`:notempty:then=`26`:else=`23`
&resource=`[[+id]]`
&tpl=`writing_recentTplCBWrapper`
]]
I’ve tried &field a couple different ways, but it return this array:
Array
(
[scriptProperties] => Array
(
[resource] => 47
[tpl] => writing_recentTplCBWrapper
)
)
Maybe this isn’t a cbGetFieldContent issue, but one with how I’m trying to apply an output filter to a snippet parameter. In any event, is it possible to achieve what I want with this snippet?