Jahia Dev Forum > How to get the currentPage...

0 (0 Good)
0 (0 Bad)

How to get the currentPage of a reference ?

by  Tanba »  2016/05/11 16:28


I have a button to switch to edit mode declared in the Header (absolute area filled in the home page). I want to get the current page path of this button but it returns the path of the home page where the button was declared.
I used this expression : ${jcr:getParentOfType(currentNode.parent,'jnt:page').path}

How can I get the parent page of an element declared in absolute area ?

Best regards.

Number of messages  1
Not registered

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page