[pmwiki-users] How to detect if a page has @nopass for the read password

Randy Brown alongkiss at aprivatespot.com
Mon Jul 12 13:07:08 CDT 2010

Thanks, Eemeli.

That works as you described for passwords set on the page. Unfortunately, some of my pages inherit the attributes. I've tried numerous variations of your code, but haven't figured out how to do the test for Group and Site-inherited attributes. Is that possible? If so, any hints?


P.S. This is a pretty important conditional if you want to put visibility-dependent things like RSS links or Facebook "Like" buttons (http://www.pmwiki.org/wiki/Cookbook/FacebookLikeButton) on a page. I'm thinking if I display links and buttons on a page that won't service them due to password protection, it will just confuse users.

On Jul 12, 2010, at 11:45 AM, Eemeli Aro wrote:

> Slightly hacky, but should work provided that the @nopass is set
> directly for the page, and not inherited from the GroupAttributes
> page:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20100712/6d50437e/attachment.html>

More information about the pmwiki-users mailing list