[opencms-dev] creating list of CmsJspNavElements with getNavigationForFolder when folder is a navigation level

Gratian Francis gfrancis2 at cancercare.mb.ca
Mon Oct 31 16:20:10 CET 2016


I'm using the following line of code to create a list of nav elements, however when sub is a navigation level it returns an empty list even though there are folders within, is there another way of creating a list of nav elements from a navigation level folder?

List<CmsJspNavElement> filesInSub = nav.getNavigationForFolder(sub.getResourceName());

Cheers,
Gratian Francis
Junior Programmer Analyst
CancerCare Manitoba
CC40-825 Sherbrook Street
Winnipeg, MB R3A 1M5
Ph: 204-784-6403
Cell: 204-794-1230
gfrancis2 at cancercare.mb.ca<mailto:gfrancis2 at cancercare.mb.ca>

[CCMB-master-logo-cmyk]

Planned Absences:
None for now, maybe next year.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20161031/db8814d8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3835 bytes
Desc: image001.jpg
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20161031/db8814d8/attachment.jpg>
-------------- next part --------------
This email and/or any documents in this transmission is intended for the addressee(s) only and may contain legally privileged or confidential information.  Any unauthorized use, disclosure, distribution, copying or dissemination is strictly prohibited.  If you receive this transmission in error, please notify the sender immediately and return the original.

Ce courriel et tout document dans cette transmission est destiné à la personne ou aux personnes à qui il est adressé. Il peut contenir des informations privilégiées ou confidentielles. Toute utilisation, divulgation, distribution, copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas le destinataire de ce message, veuillez en informer l'expéditeur immédiatement et lui remettre l'original.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20161031/db8814d8/attachment-0001.htm>


More information about the opencms-dev mailing list