[pmwiki-users] 2.1.beta15: pagelist formats

Patrick R. Michaud pmichaud at pobox.com
Thu Dec 29 11:14:58 CST 2005


On Thu, Dec 29, 2005 at 09:56:11AM +0000, Hans wrote:
> To get things working I tried to recreate the function as an entry to
> Site.PageListTemplates, which showed other problems:
> I could not simply rebuild it in PageListTemplates. It seems that
> pmwiki uses PageListTemplates entries to create individual lines in
> the pagelist (what was defined with $FPL...IFmt). A header line was
> repeated for every item.
> I tried the following to create a three column table of forum topics:
> 
> !!!fmt=#forum
> Forum topics in table format
> [@
> [[#forum]]
> <<fplforum>>
> !!!Topic Index
> ||width=80% cellpadding=3px
> ||!Topic ||!Last posted ||!By ||
> ||[[{=$FullName}|+]] ||{=$LastModified} ||{=$LastModifiedBy} ||
> >><<
> [[#forumend]]
> @]
>
> but this does not create one table, but a table for each pagelist
> item.
> It would be nice if pagelist could understand such syntax, as it is
> simple enough.

Try:

    [[#forum]]
    (:if equal {<$Group}:)
    >>fplforum<<
    !!!Topic Index
    ||width=80% cellpadding=3px
    ||!Topic ||!Last posted ||!By ||
    (:if:)
    ||[[{=$FullName}|+]] ||{=$LastModified} ||{=$LastModifiedBy} ||
    (:if equal {>$Group}:)
    >><<
    [[#forumend]]

See http://www.pmwiki.org/wiki/Test/ForumList for an example of
the output (and a link to the template used).

Pm




More information about the pmwiki-users mailing list