I am trying to get the external id from the URL but getting
In default-navigation-model.xml I have the following entry:
<url url="page://oracle/webcenter/portalapp/pages/home.jspx" id="home" factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory">
Is there a way to getting the id "home" by passing in the URL programatically. I am currently looking at to get to a solution but kinda of stuck. Appreciate any help/
NavigationModel model = navContext.getDefaultNavigationModel(); NavigationResource resource = model.getResource("/oracle/webcenter/portalapp/pages/home.jspx");
Thanks Daniel but node.prettyUrlPath[node.depth] gives me ID "home" but not "oracle/webcenter/portalapp/pages/home.jspx" which is what I want to compare the URL that I receive.
I need the the following from NavigationResource.