[opencms-dev] Creating and Using Templates

Gonzalez, Arnau (GE Consumer Finance, consultant) arnau.gonzalez at ge.com
Fri Aug 19 15:44:22 CEST 2005


After respondig your e-mail I tried to create a simple template and I've found out that certanly only the static content is shown, however I've discovered the problem. Open the new page with the option "Edit controlcode". You will see two sections one started with <page language="de"> for the german content, and other with <page language="en"> for the english content. If you have already written something, it will appear between the <content> tags of one of the two languages. Be sure that the name of the element here, before the content, specified with the line <element name="something"> is the same you use in the template, <cms:include element= "something"/>.
Now the content is shown in the page as well.

Arnau

-----Mensaje original-----
De: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]En nombre de A Chan
Enviado el: jueves, 18 de agosto de 2005 20:51
Para: opencms-dev at opencms.org
Asunto: [opencms-dev] Creating and Using Templates


Hi Folks,

I'm an OpenCMS newbie, using version 6.0.

I've created a new template based on instructions from
the Alkacon documentation "JSP template development
Howto".

When I create a new page that uses the template, I
only see the static text output from the template, but
not the body of my page.  My template does include the
body tag, <cms:include element= "body"/>.

I was able to get this to work *once* for a new page,
but now I can't get it to work for any other new
pages.  

Is there some relationship between modules, templates,
projects, and folders that I need to establish in
order to use the template successfully?

Thank you for your assistance,
-Amy


_______________________________________________
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



More information about the opencms-dev mailing list