You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Ross Gardler <rg...@apache.org> on 2007/06/14 17:06:44 UTC

Re: Where to put my own (reusabel) theme

On 07/05/07, Thorsten Scherler
<th...@juntadeandalucia.es> wrote:
> On Thu, 2007-04-19 at 13:32 +0200, Thorsten Scherler wrote:
> > On Wed, 2007-04-18 at 13:39 +0100, Ross Gardler wrote:
> > > I have a Forrest based sub project, this project provides its own theme.
> > > I want to be able to reuse this theme across multiple sites generated by
> > > my sub-project.
> > >
> > > It is not an option to contribute this theme to Forrest (although it
> > > will be available under the Apache License). Therefore, the ideal
> > > solution would be to provide a theme plugin, say
> > >
> > > ac.uk.osswatch.forrest.themes
> > >
> > > However, looking at the sitemaps in the current dispatcher I'm not clear
> > > on how this can be achieved.
> > >
> > > Any pointers?
> >
> > You can override the core themes by setting either
> > properties:dispatcher.themer in f.p.x or lm:dispatcher.themer in your
> > project lm.
> >
> > This first would loose the core themes, since everything will be
> > searched in your custom theme package then.
> >
> > Adding it to the project lm like will overcome this downside:
> >
> > <!-- Base location of the builded themer plugin-->
> >     <match pattern="dispatcher.themer">
> >       <location src="{properties:forrest.plugins}/ac.uk.osswatch.forrest.themes" />
> >       <location src="{properties:forrest.plugins}/{properties:dispatcher.themer}" />
> >     </match>

That did not work if you want to use any contracts that are provided
by the common themes. Since we are only looking in the custom themer
for contracts.

I've patched dispatcher so that it does work though, you just need to add:

<match pattern="dispatcher.themer">
  <location src="{properties:forrest.plugins}/ac.uk.osswatch.forrest.themes" />
</match>

To your locationmap.

Ross