Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Itterate Level1 & 2 in JSP

Avatar

Level 2

Hi all,

I have a requirement that , to show the below level 1 under industry-solution-components folder and level 2 components under l2-layer in AEM page under Industry Tab.

haritha6_0-1660238070745.png

I have a below JSP code and want to replace with the above requirement .

 

<slingx:forEachChildResource var="industriesResource" resourcePath="industriesLinks">
<slingx:property var="industrylabel" name="label" resourcePath="${industriesResource.path}" />
<slingx:property var="industryDestination" name="destination" resourcePath="${industriesResource.path}" />
<div class="top-nav-auth-item-wrapper">
<li><a href="<tef:link path="${empty industryDestination ? # : industryDestination}"/>">
<span>${industrylabel}</span>
</a></li>
</div>
</slingx:forEachChildResource>

 

can anybody help me how to get level 1 and level 2 items in JSP and display in the page?

Thanks in advance.

0 Replies