forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vicent Mas <uve...@gmail.com>
Subject Re: motd question
Date Mon, 04 Apr 2011 14:21:34 GMT
On 2011-04-04 Vicent Mas <uvemas@gmail.com> said:

> 2011/4/4 David Crossley <crossley@apache.org>:
> > Brian M Dube wrote:
> >> Vicent Mas wrote:
> >> > I'm trying to add a motd pane only to the main page of my dispatcher
> >> > website. Adding the following lines to my pelt-html.content.panel.xml
> >> > makes the pane to appear in every index.html page of the website:
> >> > 
> >> >         <forrest:contract name="content-motd-page">
> >> >           <forrest:property name="content-motd-page">
> >> >             <motd>
> >> >               <motd-option pattern="index.html">
> >> >                 <motd-title></motd-title>
> >> >                 <motd-page location="alt">My message here.</motd-page>
> >> >               </motd-option>
> >> >             </motd>
> >> >           </forrest:property>
> >> >         </forrest:contract>
> > 
> > In the "skins" method, which is where this MOTD stuff
> > orinigated, there is also the "starts-with" attribute.
> > See docs in main/fresh-site/src/documentation/skinconf.xml
> > i.e. a 'forrest seed-sample' site.
> > 
> > We use this for forrest.apache.org site to have a specific
> > message for only the home page index.html
> > See $FORREST_HOME/site-author/skinconf.xml
> > 
> > Not sure if that is available with Dispatcher.
> > 
> [...]
> > 
> Thanks a lot to both of you for your help. I'll try your suggestions asap.
> 
> Vicent

Hi,

I've updated my local repo and checked that the 'starts-with' attribute stuff 
of motd is not available with dispatcher. I've customised the content-motd-
page.contract.xml that comes with dispatcher adding some 'starts-with' stuff. 
I've used $FORREST_HOME/main/webapp/skins/pelt/xslt/html/site-to-xhtml.xsl as 
a guide (not sure if it is the best choice but it has been good enough for 
me). Now the motd contract works as I want.

So again thanks for your help,

Vicent
::

	Share what you know, learn what you don't


Mime
View raw message