[opencms-dev] Navigate through folders not in navigation

Ayvid B ayvid_bh at rediffmail.com
Fri Oct 8 22:30:01 CEST 2004


An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20041008/9254558c/attachment.htm>
-------------- next part --------------
  
Thanks.

I tried the below code :

Vector test = new Vector();
test = cmsObject.getResourcesInFolder("test");
for ( int z = 0; z<test.size();z++)
  {
       CmsJspNavElement nav_test = (CmsJspNavElement)test.get(z);
       out.println("nav_test"+nav_test.getNavText());
   }
 The test folder is not in navigation.

But I am getting this error :

Root cause: javax.servlet.ServletException: com.opencms.core.CmsException: [com.opencms.file.oraclesql.CmsResourceBroker] /default/vfstest at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825) at org.apache.jasper.runtime.PageContextImpl.handlePageException



- Ayvid


On Sat, 09 Oct 2004 Olli Aro wrote :
>cmsObject. HYPERLINK
>"file:///C:\\File_Storage\\Projects\\Roundabout\\Roundabout%203\\Packages\\O
>penCMS\\Ver%205%20API\\com\\opencms\\file\\CmsObject.html#getResourcesInFold
>er(java.lang.String)"getResourcesInFolder(java.lang.String folder)
>
>
>
>    _____
>
> From: opencms-dev-bounces at opencms.org
>[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Ayvid B
>Sent: 08 October 2004 20:39
>To: The OpenCms mailing list
>Subject: [opencms-dev] Navigate through folders not in navigation
>
>
>
>Hi
>
>Is there a method in OpenCMS by which I can navigate through a folder which
>is not there in the navigation.
>
>CmsJspNavBuilder.getNavigationForFolder() gets only those folders which are
>there in navigation.
>
>Thanks,
>Ayvid
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.772 / Virus Database: 519 - Release Date: 01/10/2004
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.772 / Virus Database: 519 - Release Date: 01/10/2004
>


More information about the opencms-dev mailing list