[opencms-dev] Common locations for header and footer files

Tim McGuire tmcguire at go-integral.com
Tue May 2 20:02:26 CEST 2006


Ok.  I couldn't edit those because I don't have publishing permissions,
so I switched to offline view and now I can edit foot.jsp and head.jsp.


Thanks for putting up with me as I learn the significance of offline vs
online!
Tim 

> -----Original Message-----
> From: opencms-dev-bounces at opencms.org 
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Tim McGuire
> Sent: Tuesday, May 02, 2006 12:48 PM
> To: joe at galway.net; The OpenCms mailing list
> Subject: RE: [opencms-dev] Common locations for header and 
> footer files
> 
>  thanks for the response!  For the production site, I didn't 
> create the existing template and after searching a bit more, 
> I found some of the template files in the "root" site.  Now 
> the trouble is, I can't seem to open them through the browser 
> interface...  I get a null pointer error.
> (the site is running version: 6.0 beta 1 Corrin )
> 
> > -----Original Message-----
> > From: opencms-dev-bounces at opencms.org 
> > [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Joe Desbonnet
> > Sent: Tuesday, May 02, 2006 10:13 AM
> > To: The OpenCms mailing list
> > Subject: Re: [opencms-dev] Common locations for header and footer 
> > files
> > 
> > Tim,
> > 
> > If you develop your own template this should be very easy. 
> My typical 
> > template JSP script will look something like what I've 
> appended below.
> > If I need to enable a site for something like Google 
> Analytics I just 
> > paste the Javascript code into _template_footer.jsp file which is 
> > included by all templates in the project.
> > 
> > Joe.
> > 
> > <%@include file="lib/_jsp_header.jsp"%> <%@include 
> > file="lib/_template_header.jsp" %> <% /*
> > ********** START OF BODY ********** */ %> <% if
> > (cms.template("body")) { %>
> > 		<!-- BODY -->
> >                 <div id="bodywide">
> > <cms:editable /><cms:include element="text1" editable="true"/>
> >                 </div>
> >                 <!-- END BODY -->
> > <% } /* ********** END OF BODY ********** */ %> <%@include 
> > file="lib/_template_footer.jsp" %>
> > 
> > 
> > 
> > 
> > 
> > On 5/2/06, Tim McGuire <tmcguire at go-integral.com> wrote:
> > > I am new to OpenCms and I am planning to place a javascript hit 
> > > counter in an existing setup in some kind of footer file 
> so that it 
> > > gets called each time a page loads.
> > > It isn't clear to me where framework/template files would
> > be located.
> > >
> > > Any ideas on the best place to drop something you need 
> included on 
> > > every page? the structure I have for sites is "root",
> > "default", and "mySite"
> > > (where all my content is)  should I be looking in root or 
> default?  
> > > Can I access the template files through my web browser 
> interface or 
> > > does this depend on how the admins have configured openCMS?
> > >
> > > Thanks a bunch.
> > >
> > > Tim
> > >
> > > _______________________________________________
> > > 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