AuthTable
This recipe is obsolete as of pmwiki-2.2.0; use the SiteAdmin.AuthList page instead.
Questions answered by this recipe
How do I know which attributes are set?
Description
All pagenames and their attributes will be displayed in a table. The page code to do this is:
(:pagelist fmt=authtable:)
For a very large wiki it can take a long time to generate the list.
It is easy to speed it up by listing selected groups using the group attribute
in the pagelist: (:pagelist group=Site,Cookbook fmt=authtable:)
Here is an Example: http://www.pmwiki.org/wiki/Test/AuthList
Installation
From the user list: Starting with 2.2.0-beta52 it's in the core, at the Site.AuthList page. (This was changed to SiteAdmin.AuthList at 2.2.0-beta58.)
So, no need to copy fplauth.php or anything else, just use the pagelist command as above.
Copy fplauth.phpΔ to your cookbook directory.
In your config.php enter:
or in your farmconfig.php enter:
$FarmD
/cookbook/fplauth.php");
Notes
Note that it won't list any pages for which you do not have read authorization.
Release Notes
- Version 1.2: Corrected RecipeInfo so RecipeCheck would work properly.
- Version 1.1: Added RecipeInfo, Added "action=attr" to the links, Disabled automatic logout
- Version 1.0: Initial Release
Comments
I made a couple of simple tweaks to the code to make this work much faster when managing a site's attributes, namely:
- Added action=attr to the links so can go straight to the attributes page and edit.
- Disabled automatic logout on attributes change so you can change more than one page at a time.
- Topped all the columns table headers, so they all look the same.
Here's the code if the maintainer wants to update the original script: fplauth2.phpΔ Cheers, Caveman
I've just installed pmwiki 2.2beta54 (which includes this recipe in the core) and now am trying to figure out what the AuthList output means. I get only a fraction of the protected pages listed, but that might be the correct output if the emphasize is on "pages". (Most of my pages are protected by group protection.) Still, a couple of GroupAttributes pages are listed, too, apparently only when the group contains page-level protected pages, too. Still, "clear"ing the page-level passwords did not in all cases make the entries vanish from the list as expected, so Ì'm somewhat confused now. My questions:
- Is the core feature AuthList identical to the AuthTable recipe?
- Is there a way to list group-level protection just like page-level protection?
- Under which conditions are GroupAttributes pages listed?
- Under which conditions are standard pages listed?
I hope this is the right place to ask. Maybe any answers would actually be a good start for the PmWiki.AuthList? documentation that doesn't seem to exist so far? --Henning June 08, 2007, at 09:31 AM
See Also
Contributors
- Pm created code
- created recipe page
- Ian MacGregor test and bug report for Site.AuthList
User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.