[pmwiki-users] read access password question
Patrick R. Michaud
pmichaud at pobox.com
Wed Sep 6 13:33:58 CDT 2006
On Wed, Sep 06, 2006 at 05:08:20PM +0100, Hans wrote:
> I am just finalising a weekly online community magazine, as pmwiki,
> for which people will subscribe and get a password to access the
> week(s) they subscribe for. Each week's edition will be in one wiki
> group, so read access passwords can be set separately.
> My first question: how can subscribers see a list of editions (groups) they
> have subscribed to (have a password)?
Are you using authorization groups and/or authuser? If so, it's
as easy as:
(:pagelist fmt=#group group=Editions*:)
which will display a list of all groups for which the person has
read permission set (assuming $EnablePageListProtect is 1, the default).
> Second question: Can I have on a general page, say Main.HomePage,
> which will be readable by anyone, a list of published edition-groups,
> generated automatically by pagelist, when these groups have individual
> read passwords set?
Perhaps you can set $EnablePageListProtect=0; in local/Main.HomePage.php ?
Or, even better:
if ($action == 'browse') $EnablePageListProtect = 0;
On the downside, this might let some parameters through via url
query string arguments, so I need to add an option to (:pagelist:)
to prevent url arguments from being considered.
More information about the pmwiki-users