[opencms-dev] OpenCms5 - set Template of Resource Type Page from Java class ???
james
jim at futurate.com
Tue Jan 10 13:13:18 CET 2006
Hi.
I can create an html page and set its Title, NavText, etc properties from my
Java class, but how do I set the template that it uses??? OpenCms 5.
public void createIndexPage() throws CmsException {
Hashtable prop = new Hashtable();
prop.put("Title", pageName);
prop.put("NavPos", "1");
prop.put("NavText", "Mini-site for " + uniqueFolderName);
cms.createResource(minisiteRoot + uniqueFolderName + "/", pageName,
CmsResource.C_TYPE_PAGE_NAME, prop);
}
Thanks…
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.16/225 - Release Date: 09/01/2006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060110/939a8f96/attachment.htm>
More information about the opencms-dev
mailing list