Hi all,
Using the rffNavSubmenu slot (sys_RelationshipContentFinder) we have expanded the allowed content types to wwwGeneric and other content types with navons continuing to reside in this slot as normal. We are using the following code to generate the $link
#if($node.getPrimaryNodeType().getType()=="wwwExternalLink")##
#set($link = $node.getProperty("www_url").String)##
#elseif($node.getPrimaryNodeType().getType()=="wwwGeneric" || $node.getPrimaryNodeType().getType()=="wwwHomepage")##
#set($cloneditem = $sys.assemblyItem.clone())##
$cloneditem.setNode($node)##
#set($link = $rx.location.generate($cloneditem))
#else##
#set($link = $node.getProperty("nav:url").String)## Working
#end##
This is functioning appropriately until we get into the following situation
| Folder1
| - Content Item 1
| - Content Item 2
| - Folder 2
| | - Content Item 3
Navigating to Content Item 3 and then navigating to Content Item 1 does not use the correct ?sys_folderid in the URL to which makes me believe that the code attached above fails to bring the folderid of $node when using setNode().
What am I missing to set the sys_folderid for each non-navon item?