[opencms-dev] Template location

Yves Glodt yg at mind.lu
Sat May 9 18:35:27 CEST 2009


On Saturday 09 May 2009, Mathias Lin | SYSVISION wrote:
> The template doesn't have to be under /system/, can also be under the
> site folder somewhere.
> Make sure you don't put the "/sites/<sitename>" part of the path into
> the template-element path, only the path starting from the site root
> folder.

That was my mistake... I put the absolute path instead of the relative.
Correcting the path, now it works

Thanks! 
Yves

> If /home/site.com is a subfolder under your site folder, then
> it should work - if not maybe some typo error?
>
> Yves Glodt-5 wrote:
> > Hello,
> >
> > is it possible to make pages use a template which does not reside
> > in /system/modules/.../templates ?
> >
> > I would like to create a template as /home/site.com/template.jsp. I
> > tried to create the template-jsp like this and the set
> > template-property of my testpage to that file, but got this error
> > "This is the default OpenCms template, since the template for this
> > resource is not configured correctly."
> >
> > Best regards,
> > Yves
>
> -----
> Mathias Lin
> SYSVISION Ltd., China
> http://www.sysvision.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090509/defc631e/attachment.htm>


More information about the opencms-dev mailing list