[pmwiki-users] Page list format
Patrick R. Michaud
pmichaud at pobox.com
Mon Dec 11 13:11:46 CST 2006
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} ||
(You may need to put the first three lines into a single line of markup.)
Pm
More information about the pmwiki-users
mailing list