[pmwiki-users] How can I read password protect all pages in a group except the HomePage?

Sandy sandy at onebit.ca
Mon Nov 6 12:22:05 CST 2006


H. Fox wrote:
>> How can I read password protect all pages in a group except the HomePage?
> 
> Here's one way:
> 
> First, set a read password for the group using a GroupName.php that
> looks like this:
> 
>    <?php if (!defined('PmWiki')) exit();
>    $DefaultPasswords['read'] = crypt('your_secret_password');
> 
> Then set a password of @nopass on the group's HomePage using ?action=attr .
> 
> Hagan

If you'll be doing this a lot, consider putting what is now the HomePage 
into the Main group (or AllTheGroupsHomePages group). Have to be careful 
linking from those pages to their group pages, though.

Sandy





More information about the pmwiki-users mailing list