Pagelist Auth List Short
Questions answered by this recipe
How do I display page permissions in a brief tabular format?
Description
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.
Implementation
Add the following to your Site.LocalTemplates, or create a page such as Site.AuthListShort?.
#authlistshort
Short authorisation list showing page permissions
>>comment<< [[#authlistshort]] (: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]] [- [[{=$Group}.GroupAttributes?action=attr | (attr)]] -] : (:cellnr:)[-''read''-] (:cell:)[-{{=$Group}.GroupAttributes$PasswdRead}-] (:cell:)[-''edit''-] (:cell:)[-{{=$Group}.GroupAttributes$PasswdEdit}-] (:cell:)[-''attr''-] (:cell:)[-{{=$Group}.GroupAttributes$PasswdAttr}-] (:cell:)[-''upload''-] (:cell:)[-{{=$Group}.GroupAttributes$PasswdUpload}-] (:ifend:) (:template each:) (:if ! equal {=$Name} GroupAttributes :) (:cellnr colspan=8:) [[{=$FullName}]] [- [[{=$FullName}?action=attr | (attr) ]] -] : (:cellnr:)[-''read''-] (:cell:)[-{=$PasswdRead}-] (:cell:)[-''edit''-] (:cell:)[-{=$PasswdEdit}-] (:cell:)[-''attr''-] (:cell:)[-{=$PasswdAttr}-] (:cell:)[-''upload''-] (:cell:)[-{=$PasswdUpload}-] (:ifend:) (:template last:) (:cellnr colspan=8 style='border-top: gray 1px solid;' :) [-{$$PageCount} pages displayed-] (:tableend:) [[#authlistshortend]] >><< |
Create the pagelist using the following code
>>font-size:small<< (:pagelist fmt=#authlistshort request=1 count=20 group=PmWiki,Cookbook:) >><< | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Remove the 'count' and 'group' as required.
Notes
Release notes
See also
- Pagelist Auth List Short Display, in brief format, the permissions settings for pages that have permissions set.
- PagelistByCategory List pages by Category
- PagelistCalendar Use PageTextVariables and ftime markup expression to create a calendar where each event has its own page.
- PagelistCount Get pagelist to return a count of pages (deprecated)
- PageListExtensions Many Pagelist Enhancements
- PageListMultiTargets Enable multiple pages and wildcards in PageList
- PagelistNotes Notes on page lists
- PageListPlus Extend pagelist with various capabilities
- Pagelist Random Image Select an image randomly from all pages with images and display
- Pagelist Recent Changes A recent changes page created using Page lists
- Pagelist Site Map Create a sitemap using the page list directive
- PageListTemplates Recipe deprecated, see PmWiki.PageLists
- Pagelist Template Samples Custom templates for pagelists formats
- PageListWikiTrail Enable a WikiTrails markup to use a (:pagelist ... :) directive
Contributors
Comments
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.