Re: motd question

Vicent Mas <[email protected]>
Newsgroups gmane.text.xml.forrest.devel
Message-ID <[email protected]>
On 2011-04-04 Vicent Mas <[email protected]> said:

> 2011/4/4 David Crossley <[email protected]>:
> > 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
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAk2Z0+4ACgkQkNEIe15lPai/JACfVd2r7tf8y4LUWhhVE6Oe7YP/
uj8Anjb9e6+AZIhGtPii2fIBXjvL0BY4
=J/yM
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.