I am trying to link to something in nested slot -
slot 1 has image
image has slot for a link
In code below, I can get as far as getting things like:
#set($linkresult = $relresult.getNode().getProperty(‘rx:sys_contentid’).String)
from the nested slot, but I need to get the direct link. Anyone know how to call for that?
Thanks
<div class=“$thisclass”>
#initslot(“ciBackgroundImageSlot” “template=ciSnLinkOnly”)
#if($sys.part.render)##
#if($sys.currentslot.slot)##
#if($sys.currentslot.relresults.size() > 0)
#foreach( $relresult in $sys.currentslot.relresults )
#__slotsetup(“ciLinkSlot” “”)## Set up child slot to retrieve content items
#set($item = $sys.assemblyItem.clone())##
$item.setNode($relresult.getNode())##
#set($sys.currentslot.relresults = $rx.asmhelper.assemble($item,$sys.currentslot.slot,$completeparams))##
#if($sys.currentslot.relresults.size() > 0)##
test
#foreach( $relresult in $sys.currentslot.relresults )##
##set($linkresult = $relresult.getNode().getProperty(‘rx:sys_title’).String) ## Data from the child slot content items.
#set($linkresult = $relresult.getNode().getProperty(‘rx:sys_contentid’).String) ## Data from the child slot content items.
#end##
#end##(LT) img src=" $rx.doc.extractBody($relresult) " onclick="location.href='${linkresult}'" /> #end #end #end## #end## #endslot("ciBackgroundImageSlot")
</div>