How to define template elements before use them?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I want to define template template elements in OpenCMS 5 as
like I did it in OpenCMS 4.6.
In OpenCMS 4.6 I had:

<?xml version="1.0"?>
<XMLTEMPLATE>
    <ELEMENTDEF name="contenttemplate">
        <CLASS>com.opencms.template.CmsXmlTemplate</CLASS>
        <TEMPLATE>/content/contenttemplates/ctMain</TEMPLATE>
    </ELEMENTDEF>
    <ELEMENTDEF name="frametemplate">
        <CLASS>com.opencms.template.CmsXmlTemplate</CLASS>
        <TEMPLATE>/content/frametemplates/ftMain</TEMPLATE>
    </ELEMENTDEF>

    <ELEMENTDEF name="navigation">
        <CLASS>com.opencms.modules.homepage.news.NewsTemplate</CLASS>
        <TEMPLATE>/content/elements/eNavigation</TEMPLATE>
    </ELEMENTDEF>


    <ELEMENTDEF name="head">
        <CLASS>com.opencms.template.CmsXmlTemplate</CLASS>
        <TEMPLATE>/content/elements/eHead</TEMPLATE>
    </ELEMENTDEF>


<TEMPLATE>
<ELEMENT name="frametemplate"/>
</TEMPLATE>
</XMLTEMPLATE>

Doing this, I can easily reuse the main structure ( ftMain ) to do more
templates only changing the elements, and without to have to rewrite the
structure template in each template. I try to do it with <cms:template
element=..> the template is used at the moment and after in <cms:include
element > and I don't want this.
How can I do this with jsptemplates?
Thanks.

_______________________________________________
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


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux