[opencms-dev] template location in the VFS
Olli Aro
olli_aro at yahoo.co.uk
Tue Dec 14 09:27:04 CET 2004
Hi Eric,
You can get the control file as below:
com.opencms.file.CmsFile reqFile=cms.getCmsObject().readFile(fileURI);
com.opencms.template.CmsXmlControlFile ctl=new
com.opencms.template.CmsXmlControlFile(cms.getCmsObject(),reqFile);
And then the master template URI:
String masterTemplate=ctl.getMasterTemplate();
Regards,
Olli
_____
From: Eric Hein [mailto:ehein at lozoic.com]
Sent: 14 December 2004 00:50
To: olli_aro at yahoo.co.uk; The OpenCms mailing list
Subject: Re: [opencms-dev] template location in the VFS
Olli,
Thanks for your response. We are currently using version 5 and I did see
the template reference in the control code. After looking around a bit in
the source code however, I still cannot find a way to get a handle to either
the control code as a whole, or to template field. Do you know how this can
be done?
Thanks Again,
Eric
----- Original Message -----
From: HYPERLINK "mailto:olli_aro at yahoo.co.uk"Olli Aro
To: HYPERLINK "mailto:opencms-dev at opencms.org"'The OpenCms mailing list'
Sent: Saturday, December 11, 2004 12:46 AM
Subject: RE: [opencms-dev] template location in the VFS
In version 6 the template reference is stored as property. In case you are
using the version 5 the template reference it still stored the “old
fashioned” way in the page control code (you can view this by selecting edit
control code option for a page).
Regards,
Olli
_____
From: HYPERLINK
"mailto:opencms-dev-bounces at opencms.org"opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Eric Hein
Sent: 11 December 2004 02:29
To: The OpenCms mailing list
Subject: [opencms-dev] template location in the VFS
When a page is created in the editor, where is the reference to the template
for that page stored? I need to retrieve that template name so I can use it
to set the style for its link. I thought there would be a "template"
property but that does not seem to be the case.
Thanks,
Eric C. Hein
HYPERLINK "mailto:ehein at lozoic.com"ehein at lozoic.com
HYPERLINK "http://www.lozoic.com"www.lozoic.com
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 09/12/2004
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 09/12/2004
_____
_______________________________________________
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
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 09/12/2004
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.5.0 - Release Date: 09/12/2004
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20041214/591ade32/attachment.htm>
More information about the opencms-dev
mailing list