[opencms-dev] Folder title

Olli Aro olli_aro at yahoo.co.uk
Wed Sep 15 16:12:50 CEST 2004


Or capital T for the title attribute

String currentFolderTiltle = cms.readProperty(currentFolder, "Title");

Olli

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Vincent Hanniet
Sent: 15 September 2004 14:30
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Folder title

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
>
>
>  
>



_______________________________________________
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.756 / Virus Database: 506 - Release Date: 08/09/2004
 

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




More information about the opencms-dev mailing list