使用 Jahia 获取 JSP 中的当前节点?
Get the current Node in JSP with Jahia?
有没有办法获取您与 Jahia 的当前节点?
我试图在文档中找到,但 Jahia 的文档并不多。
尝试使用 ${node.path} 但没有给我想要的东西。
${renderContext.mainResource.node.path} 是解决方案。
使用${currentNode}获取你所在的当前节点。
<%--@elvariable id="currentNode" type="org.jahia.services.content.JCRNodeWrapper"--%>
${currentNode}
有没有办法获取您与 Jahia 的当前节点?
我试图在文档中找到,但 Jahia 的文档并不多。
尝试使用 ${node.path} 但没有给我想要的东西。
${renderContext.mainResource.node.path} 是解决方案。
使用${currentNode}获取你所在的当前节点。
<%--@elvariable id="currentNode" type="org.jahia.services.content.JCRNodeWrapper"--%>
${currentNode}