I have been searching for a way to automatically populate a slot with content but I can’t seem find a way to do it without the slot being navigation related.
In the code below I am trying to populate an image slot with an image contained within the content item being displayed. Normally I would just wrap the image input field with the appropriate image tag code but I wanted to leverage an image snippet template that has already been created, this keeps everything consistent if that snippet template ever changes.
Can this be done? Am I on the right track?
#__slotsetup("erauLandingImage" "template=erauSnImageLeft")##
#set($putInSlot = $sys.item.getProperty("rx:uploadfilephoto"))##
#set($sys.currentslot.relresults = $rx.asmhelper.assemble($putInSlot,$sys.currentslot.slot,$completeparams))##
#slotItem($putInSlot)##
<body
<div id="page_copy"
#slot("erauLandingImage" "" "" "" "" "template=erauSnImageLeft")##
Thanks,
Steve