[opencms-dev] Getting the title of a folder

Alex V Londkevich lond at udm.ru
Fri Apr 4 13:14:54 CEST 2003


Hello Thomas,

Friday, Friday, April 04, 2003, you wrote:

Try it:

String currentFolder = cms.getRequestContext().currentFolder().getAbsolutePath();
String currentFolderTiltle = cms.readProperty(currentFolder, "title");





TK> Hi,

TK> How can I get the title of a folder in my project? It works with pages
TK> very well, but I don't get the title for the subfolders, only the names.
TK> But I can set titles for the folders (and see them within OpenCMS), so
TK> there must be a way to get them inside my java-code.
TK> Any ideas?

TK> Thanks in advance, Thomas




Best regards,
 Alex                            mailto:lond at udm.ru




More information about the opencms-dev mailing list