[Pmwiki-users] trial (pmwiki-0.6.beta2)

Patrick R. Michaud pmichaud
Sat Jan 31 06:37:30 CST 2004


On Sat, Jan 31, 2004 at 11:49:35AM +0100, bram brambring (zonnet) wrote:
> Hi,
> 
> Would it be an option to add a class defintion to the wiki-trail?
> And/Or a WikiTrailFmt?  That would allow a bit styling for the trails.
>
> %diff wiki_dev/local/trails.php wiki_dev/scripts/trails.php
> 49c49
> <   return "<div class=trail>&lt;&lt; $prev | $link | $next &gt;&gt;</div>";
> ---
> >   return "&lt;&lt; $prev | $link | $next &gt;&gt;";

1.  Would it be okay to use a <span> instead of a <div>?  Some 
folks may want multiple trails on a single line and by default <div>
organizes things vertically.

2.  Also, should this be done with a WikiStyle instead of a class, as in
        "%trail% $prev | $link | $next %%" ?
This would allow someone to define the style in a wiki page instead of 
(or in addition to) a CSS sheet.

3.  At some point I'll probably be adding class= to WikiStyles, enabling
markup of the form  %class=trail% which could do much the same thing.

4.  Just to be pedantic, the <div> tag would need to be <div class='trail'>
to be correct XHTML.  :-) :-)

Thanks!

Pm



More information about the pmwiki-users mailing list