[pmwiki-users] Page list format
marc
gmane at auxbuss.com
Tue Dec 12 03:50:32 CST 2006
Patrick R. Michaud said...
> On Mon, Dec 11, 2006 at 09:48:38AM -0800, pmwiki at 911networks.com wrote:
> > Hi,
> >
> > I am trying to make a pagelist in a zebra table [with each row
> > alternating colours]
> >
> > I have zebra defined in config.php
> > # Zebra table
> > $TableRowIndexMax = 2;
> > $TableRowAttrFmt = "class='ind\$TableRowIndex'";
> >
> > I have titledes defined in LocalTemplates:
> >
> > [[#titledes]]
> > ||class=zebra border=0 cellspacing=0 width=98% align=center
> > ||[[{=$FullName}|+]] ||{=$Description} ||
> > [[#titledesend]]
> >
> > All webpages have both (:title :) and (:description :) defined.
> >
> > When I do a pagelist
> >
> > (:pagelist fmt=#titledes count=15 order=-time:)
> >
> > In the CSS, I have:
> > /* zebra tables */
> > table.zebra tr.ind1 { background-color:#ddddff; }
> >
> > They are all in blue instead of alternate blue/white, and the 2nd
> > column of the description does not line up.
> >
> > Any suggestion?
>
> The ||class=zebra... line starts a new table, so PmWiki is creating
> a bunch of 1-row tables, instead of a single table with multiple rows.
>
> You probably want:
>
> [[#titledes]]
> (:if equal {<$Group} :)
> ||class=zebra border=0 cellspacing=0 width=98% align=center
> (:if:)
> ||[[{=$FullName}|+]] ||{=$Description} ||
Patrick, as I mentioned earlier, when using this template with, say:
(:pagelist fmt=#titledes count=15 order=-time:)
any tables on the same page, after the above pagelist, are zebra-ised
(i.e. have <table class='zebra') /until/ a table contains a 'class='
arg.
So, it's easy enough to fix by adding:
|| class=''
But perhaps it shouldn't happen.
--
Best,
Marc
More information about the pmwiki-users
mailing list