Is anyone else seeing this issue? I’m having whole slews of links showing up in breadcrumbs because many nodes are showing up as SELF nodes.
I’ve had to rewrite rffSnNavBreadcrumb to look something like this:
#set( $callingNode = $sys.assemblyItem.cloneParentItem.node )
#set( $callingId = $callingNode.getProperty('rx:sys_contentid').String )
#set( $landingId = $nav.self.getProperty('nav:landingPage').getNode().getProperty('rx:sys_contentid').String )
#set( $isNotLeaf = $callingId.compareTo($landingId) == 0 )
##$callingId $landingId $isNotLeaf >
#macro(itemTitle $item)
## use short_title if available to conserve screen real-estate
#set($t = $item.getProperty('rx:short_title').String )
#if($t.length() == 0)
## use full-length title when no short_title is available
#set($t = $item.getProperty('rx:displaytitle').String )
#end
${t}##
#end
#macro(title $node)
#if($node.hasProperty('nav:landingPage'))
#set($lpItem = $node.getProperty('nav:landingPage').getNode() )
#itemTitle($lpItem)
#else
## handle navons that don't have landing pages, but are external links.
$node.getProperty('rx:displaytitle').String##
#end
#end
#macro(ancestornode $node)
#landinglink($node)
:
#end
#macro(selfnode $node)
#if( $isNotLeaf )
#title($node)
#else
#landinglink($node)
:
#itemTitle($callingNode)
#end
#end
#macro(landinglink $node)
#set($title = "#title($node)" )
#set($landing_page = $node.getProperty("nav:url").String)
#if( $landing_page )
<a href="$landing_page" name="&lid=breadcrumb-$title">$title</a>
#else
$title
#end
#end
#set($node = $nav.self)
#set($bc = "#selfnode($node)")
#foreach($i in [1..20])
#if($node && $node != $nav.root && $node.parent)
#set($node = $node.parent)
#set($bc = "#ancestornode($node) $bc")
#end
#end
<div class="breadcrumbs">
$bc
</div>