[opencms-dev] getting the file resource from a link

Christian Fleron Guldner cfg at pbs.dk
Mon Oct 20 16:35:02 CEST 2003


Hi,
Hope you can help me. I have not been able to find the answer to my 
problem by searching the list.

I have a folder full of links, wich I use to generate a menu. When I need 
another item in the menu, I create a new link to the page in this 
"menu-folder".
My problem:
I need to get at the navigation information of the page I've linked to, 
not the navigation info of the link.

Obviously this:

CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, 
response);
String foldername = 
com.opencms.file.CmsFile.getPath(cms.getRequestContext().getUri());
CmsJspNavElement  element = 
cms.getNavigation().getNavigationForResource(foldername);

does not work. element points to the link resource.

Any ideas?
Thanks,

Christian Güldner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20031020/027bab09/attachment.htm>


More information about the opencms-dev mailing list