Pagelist Auth List Short

Summary: Display, in brief format, the permissions settings for pages that have permissions set.
Version: 1.0
Status: Mature
Maintainer: Simon
Categories: PageList, MarkupOnly
Users: +1 (view / edit)

Questions answered by this recipe

How do I display page permissions in a brief tabular format?


Display the permissions settings for pages that have permissions set.

Fields that say "(protected)" mean that you may need to log in (e.g., with an administrative password) in order to view them.

Use the following page list template to create a short list of authorisations.


Add the following to your Site.LocalTemplates, or create a page such as Site.AuthListShort?.


Short authorisation list showing page permissions

(:template defaults passwd=?*:)
(:template first:)
(:table class='authlist' cellspacing=0 cellpadding=0 border=0:)

(:template first {=$Group}:)
(:cellnr colspan=8 style='border-top: gray 1px solid;' :)[['''{=$Groupspaced}'''/]]: 
(:if exists {=$Group}.GroupAttributes:)
[[{=$Group}.GroupAttributes]] &nbsp;
[- [[{=$Group}.GroupAttributes?action=attr | (attr)]] -] : 
(:template each:)
(:if ! equal {=$Name} GroupAttributes :)
(:cellnr colspan=8:)
[[{=$FullName}]] &nbsp;
[- [[{=$FullName}?action=attr | (attr) ]] -] : 
(:template last:)
(:cellnr colspan=8 style='border-top: gray 1px solid;' :)
[-{$$PageCount} pages displayed-]

(:template defaults passwd=?*:) (:template first:)

(:template first {=$Group}:)


(:template each:)

{=$FullName}?   (attr) :

read  {=$PasswdRead}  edit  {=$PasswdEdit}  attr  {=$PasswdAttr}  upload  {=$PasswdUpload}

(:template last:)

{$$PageCount} pages displayed

Create the pagelist using the following code


(:pagelist fmt=#authlistshort request=1 count=20 group=PmWiki,Cookbook:)


Remove the 'count' and 'group' as required.


Release notes

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

See also



See discussion at PagelistAuthListShort-Talk?

User notes +1: 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.