[opencms-dev] Templates the JSP way

Tim Squires opencms at cheekymail.net
Thu May 5 12:47:59 CEST 2005


I'm yet another newbie to this OpenCMS thing.  The first and only version
I have is 6beta2.  I've been steadily going through the documentation,
which it pretty good but I got to the template howto and I'm stuck on
getting it to work....

I created a /sites/default/templates/ folder and added a mytemplate.jsp
file containing the taglib based example code in the howto.

When creating a new html page in /sites/default/release/ the new template
is not listed, I was expecting to see the title of the template in the
list.

So I re-created the template/ folder and template jsp in different places
in the VFS with no luck.  Eventually I copied the jsp template to

/system/modules/org.opencms.frontend.templateone/templates/

now it appears in the list of templates available when creating a page.

The only problem is that the content of the page is not shown.

Should the tag

<cms:include element="body"/>

display the content of the page that has my new template?

It can't be that difficult to create templates?  Please tell me where I'm
going wrong.


Thanks,
Tim



-- 
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.




More information about the opencms-dev mailing list