[opencms-dev] Folder title

Vincent Hanniet vhanniet at free.fr
Wed Sep 15 15:30:19 CEST 2004


Hi,
Try getPath() instead of getAbsolutePath().
HTH
Vincent

Daniel Frost wrote:

>I'm trying the followin to read the current folder's title:
>
>
>String currentFolder =
>cms.getRequestContext().currentFolder().getAbsolutePath();
>
>String currentFolderTiltle = cms.readProperty(currentFolder, "title");
>
>The first line works, but the second gives me an error. 
>
>What's wrong?
>
>
>
>
>_______________________________________________
>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
>
>
>  
>




More information about the opencms-dev mailing list