[opencms-dev] list the filenames

Olli Aro olli_aro at yahoo.co.uk
Thu Aug 19 16:45:26 CEST 2004


How about something like the code below?

Regards,

Olli

Vector resources=cms.getResourcesInFolder(folderUri);
If(resources!=null)
{
	for(int i=0;i<resources.size();i++)
	{
		CmsResource res=(CmsResource)resources.elementAt(i);
		If(cms.readProperty(res.getAbsolutePath(),"NavPos")!=null)
			out.println(res.getName());
	}
}
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Raza Naqvi
Sent: 19 August 2004 14:24
To: OpenCMS
Subject: [opencms-dev] list the filenames

Hi All,

I want to list the files in particular folder which are not marked as
navigation. Is there any way I can list the filenames whose nav properties
are not set. (i.e files without adding to navigation should also be
displayed in the list).

A sample code will be more helpful.

Thanks in advance,
Raza Naqvi.

_____________________________________________________________
I use Krify Mail - http://mail.krify.com  Get  Yourname at  Krify today!


_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004
 




More information about the opencms-dev mailing list