[opencms-dev] Author name of page

Olli Aro olli_aro at yahoo.co.uk
Mon Jun 2 14:56:01 CEST 2003


You can try the following:

//Get requested resource.
CmsResource res=cms.readFile(cms.getRequestContext().getUri());

 //Return the owner name.
 String authorId=cms.readOwner(res).getName();

Regards,

Olli
  -----Original Message-----
  From: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org]On Behalf Of Ivan Jelenic
  Sent: 02 June 2003 13:35
  To: opencms-dev at opencms.org
  Subject: [opencms-dev] Author name of page


  Hi,

  How can I get an author name of page.
  Thnaks.

  Best regards, Ivan.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.486 / Virus Database: 284 - Release Date: 29/05/2003
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030602/199b6a7d/attachment.htm>


More information about the opencms-dev mailing list