[opencms-dev] naming style and headerincludes
Christoph Kukulies
kuku at physik.rwth-aachen.de
Tue Jan 20 18:53:45 CET 2015
I'm glancing through the 9.5.0 documentation. Formerly I had named all
my jsps without the extension .jsp.
Can I stay with this style or is the explicit extension .jsp recommended?
I'm also stumbling across the term "headerincludes".
My former websites' main templates had a structure like this:
<%@page import="org.opencms.jsp.*,org.opencms.file.*,java.util.*" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<cms:template element="head" >
<cms:include file="../elements/head" element="head"/>
</cms:template>
<cms:template element="titel" >
<cms:include element="titel"/>
</cms:template>
<cms:template element="body">
...various div elements...
<cms:include element="inhalt"/>
</cms:template>
<cms:template element="foot" >
<cms:include file="../elements/foot" element="foot" />
</cms:template>
In ../elements I had head,foot jsps etc.
also
../pages (contact page, forms)
../resources
../styles (css)
How does this scheme translate into the 9.5.0 way doing things?
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
More information about the opencms-dev
mailing list