[pmwiki-users] Hiding pages and groups for not loged in visitors

Bart pmwiki-users at mediamatrix.nl
Sun Oct 29 11:37:39 CST 2006


On Wed, Oct 25, 2006 at 10:50:24AM -0500, Patrick R. Michaud wrote:
| On Wed, Oct 25, 2006 at 02:35:14PM +0200, Bart wrote:
| > 
| > Normal behavior of Pmwiki is to present a login page if a page is password
| > protected for reading. I like to turn this behavior off for not logged
| > in visitors and instead display a "page not found", so I don't give away
| > password protected pages are present. 
| 
| Note that the login page is itself a wiki page (Site.AuthForm) that 
| can be customized.  Thus, perhaps one could set Site.AuthForm to 
| have something like:
| 
|     (:if group PmWiki,Site,PrivateNotes:)
|     (:include Site.PageNotFound:)
| 
|     (:if ! group PmWiki,Site,PrivateNotes:)
|     ... rest of auth form here ...
| 
| 
| I think this could also be handled quite simply in per-group
| customization files by using:
| 
|     <?php
|       if (!$AuthId) $pagename = 'Site.NoSuchPage';
| 
| Pm
| 
| _______________________________________________
| pmwiki-users mailing list
| pmwiki-users at pmichaud.com
| http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Hi Patrick,

I have been busy the last week so this is a late reply. Thanks for your
answer. Smart to do this in the per-group customization file :-) I was also
wondering how I could get $Group working in the config file. I just ran
into: http://www.pmwiki.org/wiki/PmWiki/LocalCustomizations explaining
this.

Bart




More information about the pmwiki-users mailing list