|
GroupList<< Beautifier | Cookbook-V1 | Index Template >> Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
GoalAdd markup to generate a list of existing groups Solutionor Grouplist2 has two updates, fixed part of the remarked documentation in the file and added ?pagename= to make the script work more universally. I had to call the second script grouplist2 so remember to rename it grouplist. Discussiongrouplist.php adds markup for [[$Grouplistv]] and [[$Grouplisth]] to produce vertical and horizontal lists of the existing groups in a PmWiki installation. The letters 'v' and 'h' at the end of the double bracket command determine the format to be used for the output results. The output produced by the GroupList code is customizable--see the $GroupListFmt variable in grouplist.php for examples of how the 'v' and 'h' formatting are handled. /* I modified grouplist.php to allow for a third format - [[$Grouplistl]] creates a bullet list. This is useful for certain cookbooks and skins, which use lists. The file can be downloaded as newgrouplist.php, but please remember to rename it to grouplist.php! The file simply contains additions to the code, no deletions. Sorry if I'm stepping on toes- I'm still a newbie contributor. -- Wooshoofoo \*/ Ross Kowalksi uses GroupList for an autogenerated left menu at http://www.edu-coop.org(approve links). ExamplesWhen grouplist.php is activated, the markup and the markup // You can also try $Grouplistl as well. -- Wooshoofoo. Contributors
History
pmwiki-2.2.0-beta68 -- Last modified by {{}}?
|