In addition with @DPrakashRaj , You can also inherit your component from com.adobe.cq.wcm.core.components.models.NavigationThe functionality you are trying to achieve is already implemented here.You can also checkout the code. But the basic think is like @DPrakashRaj said, you have to add logic in s...