In my templates, I am trying to process a content item in the slot of the parent item. The content item in the slot has its own template. However, there is some data that is in the parent item and I need to pass it to the child template so that it can be rendered alongwith the child item’s data.
This is the code on how I am processing the slot item.
#set( $parentName = $sys.item.getProperty(“pagetype”))
#initslot(“childSlot” “”)
#if($sys.currentslot.relresults.size() > 0)
#foreach( $relresult in $sys.currentslot.relresults )
$rx.doc.extractBody($relresult)
#end
#end
#end
How should I pass this data parentName so that the template code of the item in the slot is able to process it?
thanks
Manvinder