Glasnost Help and Documentation
Developers
API
Functions
getPathToObject




getPathToObject
getPathToObject(object) returns the list of the rubrics to go through to reach object, or None if no path to object is found.
<div tal:define="pathT getPathToObject(currentObject)" tal:condition="pathT and len(pathT) > 2"> <span tal:replace="' / '.join([ x.label for x in pathT[1:]])" /> </div>