본문 바로가기

Develop/AEM

AEM Tag

<h2>properties</h2>
Title: <%= properties.get("jcr:title") %><br />

<h2>currentPage</h2>
Title: <%= currentPage.getTitle() %><br />
Name: <%= currentPage.getName() %><br />
Path: <%= currentPage.getPath() %><br />
Depth: <%= currentPage.getDepth() %><br />

<h2>currentNode</h2>
Title: <%= currentNode.getProperty("jcr:title").getString() %><br />
Name: <%= currentNode.getName() %><br />
Path: <%= currentNode.getPath() %><br />
Depth: <%= currentNode.getDepth() %><br />

Result :

properties
Title: vision-g

currentPage
Title: vision-g
Name: vision-g
Path: /content/genesis/us/en/vision-g
Depth: 5

currentNode
Title: vision-g
Name: jcr:content
Path: /content/genesis/us/en/vision-g/jcr:content
Depth: 6
/content/genesis/us/en/vision-g