[pmwiki-users] 2.1.beta15: pagelist formats

Hans design at softflow.co.uk
Thu Dec 29 03:56:11 CST 2005


The new pmwiki release broke the SimpleForum script
(recipe: http://www.pmwiki.org/wiki/Cookbook/SimpleForum  )
which uses a custom fmt for a topic pagelist on the forum HomePage.
Loading it pmwiki just hangs with a blank screen.
What would I need to change in the special fmt function of the script?

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.

Here are the original forum fpl variables which would need translation
into PageListTemplate:

SDV($FPLForumStartFmt,"<div class='fplforum'>");
SDV($FPLForumEndFmt,'</table></div>');
SDV($FPLForumGFmt,"\n<h3>Topic Index </h3>
   <table class='forum' width='80%' cellpadding=3px><tr class='messagehead'>
   <th>topic</th><th>last posted</th><th>by</th></tr>\n");
SDV($FPLForumIFmt,"<tr class='messageitem'><td><a href='\$PageUrl'>\$Titlespaced</a></td>
   <td><i> \$LastModified</i></td><td> \$LastModifiedBy</td></tr>\n");

How can this be achieved?

Best, 
~Hans                           






More information about the pmwiki-users mailing list