You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by slowhome <we...@theslowhome.com> on 2007/10/17 00:38:05 UTC

Includes Direcory

I have several themes with small variations and I would like them to draw
upon a common set of includes (header, footer, sidebar, etc.) from a common
directory. I've created a folder called "includes" in the "themes" folder
but it doesn't seem to work.

   #includeTemplate($model.weblog "../includes/_test") 


Any suggestions? Thanks in advance.
-- 
View this message in context: http://www.nabble.com/Includes-Direcory-tf4637206s12275.html#a13243798
Sent from the Roller - User mailing list archive at Nabble.com.


Re: Includes Direcory

Posted by Dave <sn...@gmail.com>.
On 10/16/07, slowhome <we...@theslowhome.com> wrote:
> BTW, I'm using Roller 3.1
>
> slowhome wrote:
> >
> > I have several themes with small variations and I would like them to draw
> > upon a common set of includes (header, footer, sidebar, etc.) from a
> > common directory. I've created a folder called "includes" in the "themes"
> > folder but it doesn't seem to work.
> >
> >    #includeTemplate($model.weblog "../includes/_test")


Roller templates are not stored in a directory structure in the
database, so that will not work. Instead of adding new pages for
footers and headers, why not define macros.

I think this will work in 3.x: create the file below, put your
Velocity macros there and Roller will pick them up.

   WEB-INF/velocity/roller-custom.vm

- Dave

Re: Includes Direcory

Posted by slowhome <we...@theslowhome.com>.
BTW, I'm using Roller 3.1



slowhome wrote:
> 
> I have several themes with small variations and I would like them to draw
> upon a common set of includes (header, footer, sidebar, etc.) from a
> common directory. I've created a folder called "includes" in the "themes"
> folder but it doesn't seem to work.
> 
>    #includeTemplate($model.weblog "../includes/_test") 
> 
> 
> Any suggestions? Thanks in advance.
> 

-- 
View this message in context: http://www.nabble.com/Includes-Direcory-tf4637206s12275.html#a13243806
Sent from the Roller - User mailing list archive at Nabble.com.