[pmwiki-users] How to unprotect specific -Talk page in groupA and groupB

Petko Yotov 5ko at 5ko.fr
Tue Nov 17 00:24:06 PST 2020

On 17/11/2020 00:42, ABClf wrote:
> well, in my project, no, regular doc password pages only say how to
> protect full site, or group, or individual page, but I can not find
> the conditional syntax for unprotecting a set of pages according to
> its name.

Conditional syntax for passwords is not recommended.

If you want to have all talk pages with different permissions from their 
content pages, you need to place them in different wikigroups:

   -> Talk-Main.HomePage   OR
   -> Main-Talk.HomePage

   -> Talk-MyGroup.Page

The first one, with a Talk-* prefix, will probably need less markup to 

In a GroupFooter, you can have something like this:

In Main.GroupFooter:
[[ Talk-{*$FullName} | Discuss this page]]

In Talk-Main.GroupFooter:
[[ Main.{*$Name} | Back to content page]] OR
[[ {(substr {*$FullName} 5)} | Back to content page]]

Possibly in Site.PageActions, or if you have something like 
Site.AllGroupHeader (see cookbook) or AllGroupFooter:

(:if group Talk-*:)
* [[ {(substr {*$FullName} 5)} | Back to content page]]
* [[ Talk-{*$FullName} | Discuss this page]]

Then you set the passwords for the talk groups like explained in 
PmWiki/Passwords, that is in


If you want to leave them open, use @nopass in the form. It may be 
better to have an "open" password to prevent spambots, I use a variant 
of the solution posted here:



If you upgrade :  http://www.pmwiki.org/Upgrades

> Could be something like locking everything first, then unlocking
> special pattern name ones ; maybe :
> $DefaultPasswords['edit'] = pmcrypt('mypassword');
> if (preg_match('/-Talk$/', $pagename)) $DefaultPasswords['edit'] = '';
> Le lun. 16 nov. 2020 à 10:26, Simon <nzskiwi at gmail.com> a écrit :
>> From https://www.pmwiki.org/wiki/PmWiki/Security
>> try https://www.pmwiki.org/wiki/PmWiki/Passwords
>> hope this helps
>> On Mon, 16 Nov 2020 at 10:20, ABClf <languefrancaise at gmail.com> wrote:
>> >
>> > I would like to give visitors the right to read/edit *-Talk pages in a
>> > bunch of Groups.
>> > I didn't find how to get it in the doc.
>> >
>> > as of now, my config has a site wide basic edit protection :
>> > $DefaultPasswords['edit'] = pmcrypt('mypassword');

More information about the pmwiki-users mailing list