[pmwiki-users] Re: Binding several classes in wiki styles
    Patrick R. Michaud 
    pmichaud at pobox.com
       
    Fri Dec  2 11:17:26 CST 2005
    
    
  
On Thu, Dec 01, 2005 at 02:31:37PM -0600, Patrick R. Michaud wrote:
> On Thu, Dec 01, 2005 at 09:21:52PM +0100, Dominique Faure wrote:
> > I just wanted to be able to write something like %rframe +wikilink%,
> > which in my case could resolve to a merge of class attributes only.
> > OTOH, CSS allow multiple declaration of the same attribute (with the
> > last one as winner), so this could be acceptable.
> 
> I'm thinking that class attributes should automatically add
> even without the + sign in the wikistyle.  
This is now implemented on pmwiki.org and should appear in the next
2.1.beta release.  Thus one can now write %rframe wikilink%
and the resulting class attribute will be a merge of any class
attributes in the rframe and wikilink styles.
One thing did change from my previous message:  using 'class='
directly in a wikistyle replaces any previous class attribute 
settings in the style.  So...
    %define=rframe class='frame rfloat'%
    %define=wikilink class='wikilink'%
    markup                    result
    ------                    ------
    %rframe wikilink%         class='frame rfloat wikilink'
    %wikilink rframe%         class='wikilink frame rfloat'
    %rframe class='foo'%      class='foo'
    %class='foo' rframe%      class='foo frame rfloat'
Pm
    
    
More information about the pmwiki-users
mailing list