forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyriaque Dupoirieux <Cyriaque.Dupoiri...@pcotech.fr>
Subject Re: svn commit: r328600 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themer/resources/themes/pelt/css/leather-dev.css
Date Wed, 26 Oct 2005 10:08:47 GMT
Thorsten Scherler a écrit :

>El mié, 26-10-2005 a las 10:45 +0100, Ross Gardler escribió:
>  
>
>>cdupoirieux@apache.org wrote:
>>    
>>
>>>Author: cdupoirieux
>>>Date: Wed Oct 26 02:07:43 2005
>>>New Revision: 328600
>>>
>>>URL: http://svn.apache.org/viewcvs?rev=328600&view=rev
>>>Log:
>>>grouplogo and projectlogo become logo.
>>>      
>>>
>>Doesn't this prevent us from having different CSS for each of the logo's?
>>
>>Or is there other containing divs we can use to uniquely identify each?
>>    
>>
>
><forrest:hook name="grouplogo">
>  <forrest:contract name="logo"/>
></forrest:hook>
>
>Like this it is possible but Ross is right.
>  
>
Do you mean that the contract should have an argument to define the div 
class which - by default - would be logo ?

For instance :

    <forrest:contract name="branding-logo">
      <forrest:properties contract="branding-logo">
        <forrest:property
    name="branding-logo-name">Forrest</forrest:property>
        ...
      </forrest:properties>
    </forrest:contract>

gives :

    <div class="logo">
      <img...>
    </div>

and

    <forrest:contract name="branding-logo">
      <forrest:properties contract="branding-logo">
        <forrest:property
    name="branding-logo-name">Forrest</forrest:property>
        ...
        <forrest:property
    name="branding-logo-hook">*my_own_css_div*</forrest:property>
      </forrest:properties>
    </forrest:contract>

gives :

    <div class="*my_own_css_div*">
      <img...>
    </div>

I can make the change if you like.
Cyriaque,

>salu2
>  
>

Mime
View raw message