forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gavin" <ga...@16degrees.com.au>
Subject RE: overrides of forrest:properties/forrest:propery in contracts
Date Thu, 18 Sep 2008 11:48:53 GMT


> -----Original Message-----
> From: Sjur Moshagen [mailto:sjurnm@mac.com]
> Sent: Thursday, 18 September 2008 9:28 PM
> To: Forrest
> Subject: overrides of forrest:properties/forrest:propery in contracts
> 
> Hello all,
> 
> In
> 
> whiteboard/plugins/org.apache.forrest.themes.core/themes/common/panels/
> common-fo.panel.xml
> 
> (and elsewhere) there are several contracts with properties like:
> 
>    <forrest:contract name="page-footer-copyright">
>      <forrest:property name="copyright">
> <!-- The following are used to construct a copyright statement as
> follows :
>          <property> <symbol> <year> <vendor> <msg>
>                           <url>
>          ie. Copyright c 2002 ACME
> 	      http://ACME.org
> 	inception year option let you create a copyright with a range of
> date
> automaticalculated :
> 	2002-2007
>         -->
>        <year inception='true'>2002</year>
>        <vendor>ACME</vendor>
>        <url>http://ACME.org</url>
>        <msg>Tous droits réservés.</msg>
>        <symbol></symbol>
>        <property></property>
>      </forrest:property>
>    </forrest:contract>
> 
> Now, I would like to override this, and I thought I could just put in
> the following in my forrest.properties.xml file:
> 
>    <forrest:property name="copyright">
>      <year inception='true'>2004</year>
>      <vendor>Divvun</vendor>
>      <url>http://Divvun.no</url>
>      <msg>Atterhald om alle rettar.</msg>
>      <symbol>©</symbol>
>      <property></property>
>    </forrest:property>
> 
> But that didn't work, the one in the panel came through. What am I
> doing wrong?
> 
> I could not find any relevant info on the forrest site or in the mail
> archives.

Usually to override them, recreate the tree in your project and just copy
and change the files you want to there.

so
yourproject/src/documentation/resources/themes/common/panels/common-fo.panel
.xml

Gav...

> 
> Best regards,
> Sjur
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 270.6.21/1676 - Release Date: 9/17/2008
> 9:33 AM


Mime
View raw message