Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法让你在 Jahia 中获得当前节点?
我试图在文档中找到,但 Jahia 并没有大量记录。
尝试使用 ${node.path} 但没有给我想要的东西。
${renderContext.mainResource.node.path} 是解决方案。
使用 ${currentNode} 获取您当前所在的节点。
<%--@elvariable id="currentNode" type="org.jahia.services.content.JCRNodeWrapper"--%> ${currentNode}
https://academy.jahia.com/documentation