AuthTable: Table des auteurs

Page en cours de traduction

Summary: List Attributes of all pages in a wiki Version: 1.2 Prerequisites: none Status: working Maintainer: Pm & GNUZoo Categories: Administration Security Downloads: Normal - Attach:fplauth.php - Alternative - Attach:fplauth2.php (tweaks by Caveman)

Summary: Liste toutes les pages du wiki avec leurs attributs Version: 1.2 Pré-requis:aucuns Statut: fonctionne Mainteneur: Pm & GNUZoo Categories: Administration Security Téléchargements: Normal - Attach:fplauth.php - Alternative - Attach:fplauth2.php (tweaks by Caveman)

Questions answered by this recipe

How do I know which attributes are set?

This section is optional; use it to indicate the types of questions (if any) this recipe is intended to answer.

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

Copy Attach:fplauth.php to your cookbook directory.

In your config.php enter:

include_once("cookbook/fplauth.php");

or in your farmconfig.php enter:

include_once("$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

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".

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: Attach:fplauth2.php Cheers, Caveman

I added the action=attr and disabled the automatic logout, but I see nothing wrong with the headers. GNUZoo

See Also

Contributors

Pm created code GNUZoo created recipe page


. Page originale sur CookbookFr.AuthTable - Backlinks
Dernières modifications:
CookbookFr.AuthTable: December 23, 2021, at 06:48 AM
PmWiki.AuthTable?: December 23, 2021, at 06:48 AM