link path for slot within a slot

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}'" 
  		/&gt;
  	#end
  #end
  #end##
  #end##
  #endslot("ciBackgroundImageSlot")

</div>

Never mind - I just gave the child slot call a template to return the link:

<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” “template=ciSnPageLinkOnly”)## 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)##

                    #foreach( $relresult2 in $sys.currentslot.relresults )##
  				#set($linkresult = $rx.doc.extractBody($relresult2) )
  				#if($linkresult.length() &gt; 2)
  					#set($onclickstring = "location.href='${linkresult}'")
  				#else
  					#set($onclickstring = "")

  				#end
                    ##set($linkresult = $relresult.getNode().getProperty('rx:sys_title').String) ## Data from the child slot content items.
                   ##set($linkresult = $relresult2.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}’”

  	onclick="${onclickstring}" 
  		/&gt;
  	#end
  #end
  #end##
  #end##
  #endslot("ciBackgroundImageSlot")

<img src=“http://cloud.github.com/downloads/malsup/cycle/beach1.jpg” />

<img src=“http://cloud.github.com/downloads/malsup/cycle/beach2.jpg” />

</div>