[pmwiki-users] Page list format

pmwiki at 911networks.com pmwiki at 911networks.com
Mon Dec 11 16:30:01 CST 2006


On Mon, 11 Dec 2006 13:11:46 -0600
"Patrick R. Michaud" <pmichaud at pobox.com> wrote:

> 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.)

Wow! I'm impressed, amazing. Just one more question.

It displays the group on the 1st row, then the pages on the next lines
and so on, then the next group.

Is it possible to remove the row that displays just the group?

-- 
Thanks
http://www.sqlhacks.com
The SQL knowledge base




More information about the pmwiki-users mailing list