Expand my Community achievements bar.

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.

1 Reply

Avatar

Community Advisor

Why don't you use HTL and Sling Models?



Arun Patidar