Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Task - Create a complex navigation component with java helper

Avatar

Level 2

Hi community members ,

I have been following developer guide for learning purposes and I am on the following task :

DuttAbhishek_0-1631953653068.png

and I have pasted the code as mentioned in it and my structure in crxde is the following :

DuttAbhishek_1-1631953792181.png

Here are  the code snapshots:

DuttAbhishek_2-1631953878474.pngDuttAbhishek_3-1631953903152.png

According to the guide my desired output should be this -

DuttAbhishek_4-1631953985247.png

but I am getting this :

DuttAbhishek_5-1631954010896.png

I am not able to figure out what I am doing wrong here .

Can someone help me to figure out ?

Thanks in Advance 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Please check your TopNav.Java package name. It should be apps.training.components.structure.site_topnav;

 

kishorekumar14_0-1631960983903.png

 

View solution in original post

4 Replies

Avatar

Community Advisor

Hi @DuttAbhishek ,

 

Could you please check if you have included this sitenav in your header.html ?

 

<div data-sly-resource="${'site-topnav' @ resourceType='training/components/structure/site-topnav'}"></div>

 

Avatar

Correct answer by
Community Advisor

Please check your TopNav.Java package name. It should be apps.training.components.structure.site_topnav;

 

kishorekumar14_0-1631960983903.png