[pmwiki-users] Alphabetical Wiki List?
Patrick R. Michaud
pmichaud at pobox.com
Tue Apr 10 07:45:31 CDT 2007
On Tue, Apr 10, 2007 at 01:30:50PM +1000, Mega Mario wrote:
> Hello,
>
> Is there a function to make a list of everything on a wiki under a
> alphabetical list? Like this:
>
> A
> * Apple
> * And
>
> B
> * Blah
>
> And so on?
Define a custom page variable in local/config.php:
$FmtPV['$Group1'] = 'substr($group, 0, 1)';
Then, use a pagelist template of:
[[#alphalist]]
(:template defaults order=$Name:)
(:template first {=$Group1}:)
{$Group1}
(:template each:)
* [[{=$Group}/{=$Name}]]
[[#alphalistend]]
One can then display the alphabetical list with fmt='alphalist'
in a pagelist or search command.
Pm
More information about the pmwiki-users
mailing list