[opencms-dev] How to get property values of files in vfs
Thomas M�rz
thomasmaerz at gmx.de
Thu Mar 18 21:27:02 CET 2004
"Thomas Fabbricante" <tom_fabbricante at wunderman.com> writes:
Not tested:
> ..................................
> Vector files = cms.getFilesInFolder(targetFolder);
> int numFiles = files.size();
String propertyToRead = "myProperty";
String property = null;
String resource = null;
> for(int i=0;i<numFiles ;i++){
> //out.println(files.get(i).toString());
>
resource = ( ( CmsResource ) files.get( i ) ).getAbsolutePath( );
property = cms.readProperty( resource, propertyToRead );
> }
> ..................................
More information about the opencms-dev
mailing list