How to get parent nav using JEXL

I use $sys.assemblyItem.getNode() to get the curreent node then use the return value to find it’s parent. Is there anyway to do it in JEXL. I tried $sys.assemblyItem.getNode().getCloneParentItem() but it did not work.

Weikai,

Is this a Nav node? What’s the content type of the item?

$sys.assemblyItem.getNode (which should be the same as $sys.item) will return the node for all content types, but only Nav nodes have a non-null parent item.

Dave

How do you access the parent of $sys.item?
$sys.item.parent, or $sys.item.getParent()?