[pmwiki-users] pagelist questions

Bronwyn Boltwood arndis at gmail.com
Tue Jul 19 14:08:43 CDT 2005


On 19 Jul 2005 13:14:36 +1200, John Rankin <john.rankin at affinity.co.nz> wrote:
> Try this in your config.php file:
>         $FPLByGroupStartFmt = "<div class='fplbygroup'><ul>";
>         $FPLByGroupGFmt = "</ul><h1><a href='\$ScriptUrl/\$Group'>\$Group</a></h1><ul>";
>         $FPLByGroupIFmt = "<li><a href='\$PageUrl'>\$Title</a></li>";
>         $FPLByGroupEndFmt = "</ul></div>";
> 
> There may be a way to avoid the empty <ul></ul> that this creates at the beginning, but I can't think of one.

$FPLByGroupStartFmt = "";
$FPLByGroupGFmt = "<h1><a
href='\$ScriptUrl/\$Group'>\$Group</a></h1><ul class='fplbygroup'>";
$FPLByGroupIFmt = "<li><a href='\$PageUrl'>\$Title</a></li>";
$FPLByGroupEndFmt = "</ul>";

That changed the output to 

<div>
<h1><a href='http://localhost/pmwiki-latest/new_field/field.php/Wanted'>Wanted</a></h1>
<ul class='fplbygroup'>
<li><a href='http://localhost/pmwiki-latest/new_field/field.php/Wanted/BetterBISyntax'>Better
BI Syntax</a></li>
<li><a href='http://localhost/pmwiki-latest/new_field/field.php/Wanted/Blikification'>Blikification</a></li>
<li><a href='http://localhost/pmwiki-latest/new_field/field.php/Wanted/ExistingPages'>Existing
Pages</a></li>
<li><a href='http://localhost/pmwiki-latest/new_field/field.php/Wanted/RecentChanges'>Recent
Changes</a></li>
<li><a href='http://localhost/pmwiki-latest/new_field/field.php/Wanted/Wanted'>Wanted</a></li>
</ul>
</div>

I don't know where the wrapper div is coming from, or how it knows
that this is what I want when I put in (:pagelist group=Wanted
fmt=sidebar list=normal:).  :-)




More information about the pmwiki-users mailing list