[opencms-dev] Re: [beginner] about getNavigation() method
Jonathan Woods
jonathan.woods at scintillance.com
Thu Nov 30 08:08:08 CET 2006
There are many methods in the OpenCms API which deal with listing resources
in folders, and specifically with listing navigable resources (those marked
as being 'included in the navigation').
Have a look at the API's javadoc, which is e.g. accessible at
http://www.opencms.org/export/javadoc/core/index.html. CmsObject has a
number of methods for listing resources in folders - e.g. various forms of
getResourcesInFolder() - and CmsResource (an instance of which you can get
via CmsObject) has loads of methods starting getNavigation...
Jon
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Cyrille37
Sent: 29 November 2006 23:16
To: The OpenCms mailing list
Subject: [opencms-dev] Re: [beginner] about getNavigation() method
Cyrille37 a écrit :
> Hello,
> I'm new with OpenCMS and I'm making some try...
>
> I've got a problem with getNavigation() method.
>
> The sample for the documentation is working fine on my server.
> (http://localhost:8080/opencms/opencms/alkacon-documentation/documenta
> tion_scriptlet/test_method_getnavigation.jsp)
>
>
> But when I put the code sample in a jsp in a microsite it works
> without error, but no file is displaying. In that microsite there are
> files and folders.
I've made a copy of that page in the root folder (/sites/default) and it's
working fine and display folders, but not files.
Is there another method for listing files of a folder ?
Thanks, and sorry for that stupid/simple problem, I've just starting with
OpenCMS.
Cyrille
>
> Have you got a idea on where can I have a look to find the problem ?
> Thanks
> Cyrille.
>
>
_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list