[opencms-dev] cms:include not including in newly created file
Corbey, Clayton
CorbeyC at brandonrha.mb.ca
Wed Jun 7 20:52:16 CEST 2006
My screen is going to learn to fly soon.
:)
I've tried the new resource; no show! It's unbelievable!
-cc
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Jonathan Woods
Sent: Wednesday, June 07, 2006 13:27
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] cms:include not including in newly created
file
You must be close to staving in your screen... Would it help to
simplify
things still further and create a new resource which includes only one
element from the template, with nothing much surrounding it?
Jon
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Corbey, Clayton
Sent: 07 June 2006 19:13
To: The OpenCms mailing list
Subject: RE: [opencms-dev] cms:include not including in newly created
file
Oh, yes my email contained some typos...
Here's some sample code from
/system/modules/ca/mb/westmanlab/templates/westmanlab
<cms:template element="bodyTop">
<body>
<!-- header begin -->
<div id="header"></div>
<!-- header end -->
<!-- toolbar begin -->
<div id="toolbar">
</cms:template>
Here's some sample code from /sites/westmanlab/search.html (type jsp)
<%@ page session="false" %>
<%@ page buffer="none" %>
<%@ page import="java.util.*" %>
<%@ page import="org.opencms.search.*" %> <%@ page
import="org.opencms.jsp.*" %> <%@ taglib prefix="cms"
uri="http://www.opencms.org/taglib/cms" %>
<cms:include property="template" element="headTop" /> Search Westman Lab
Website <cms:include property="template" element="headBottom" />
<cms:include property="template" element="bodyTop" />
Seems to me that this would work; as it is for any other previously
programmed jsp file.
-cc
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Marcus Popetz
Sent: Wednesday, June 07, 2006 11:58
To: The OpenCms mailing list; The OpenCms mailing list
Subject: RE: [opencms-dev] cms:include not including in newly created
file
At 12:37 PM 6/7/2006, Corbey, Clayton wrote:
>I'm not familiar with the lingo 'dirty'. My guess is that it means a
>cached file?
dirty = changed = needing to be recompiled. That's what "touch"
does...marks it as "dirty". Just different words for the same thing.
>Here's the scoop. I created a NEW template
>
>/system/modules/ca.mb.westmanlab/templates/westmanlab
>
>The template has <cms:template property="head" /> (and more!) in it.
Just to be sure, you can't have the trailing "/" on that because it
means
the tag is ending. So you need:
<cms:template property="head">
my stuff
</cms:template>
-mp
_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change
your
list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change
your
list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list