<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<blockquote type="cite">
  <pre wrap="">
  if (PageVar($pagename, '$PasswdEdit')) {
   ....special markup settings....
  }</pre>
</blockquote>
<br>
<br>
Yes, that is probably better. <br>
<br>
Why are there two different Function summaries?<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.pmwiki.org/wiki/PmWiki/Functions">http://www.pmwiki.org/wiki/PmWiki/Functions</a>  (no PageVar)<br>
<a class="moz-txt-link-freetext" href="http://www.pmwiki.org/wiki/Cookbook/Functions">http://www.pmwiki.org/wiki/Cookbook/Functions</a> (no ReadPage)<br>
<br>
Frank<br>
<br>
<br>
Hans wrote:
<blockquote cite="mid:1883268215.20091001233255@softflow.co.uk"
 type="cite">
  <pre wrap="">Thursday, October 1, 2009, 10:54:48 PM, Frank wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">For me and my users, this should do the trick in local/config.php
   $page = RetrieveAuthPage($pagename, 'read', true);
   if ($page['passwdedit']) Markup(...);
    </pre>
  </blockquote>
  <pre wrap=""><!---->
It may do the trick for you, but mind that checking $page['passwdedit']
may not be enough, as an edit passoword may be set on the
GroupAttributes page, or as a general  default password in config
(the famous attributes cascade).

so to catch any of these, this code may be better:

  if (PageVar($pagename, '$PasswdEdit')) {
   ....special markup settings....
  }


PageVar($pagename, '$PasswdEdit') returns the attribute string,
information as to which users or group of users are authorised, and
if there is a password, shown as ******.
It is empty if nothing is set, on any level.

{$PasswdEdit} can be used in pages to show this info, or in templates
etc.
See also <a class="moz-txt-link-freetext" href="http://www.pmwiki.org/wiki/PmWiki/PageVariables">http://www.pmwiki.org/wiki/PmWiki/PageVariables</a>
and <a class="moz-txt-link-freetext" href="http://www.pmwiki.org/wiki/Cookbook/PagelistAuthListShort">http://www.pmwiki.org/wiki/Cookbook/PagelistAuthListShort</a>
(for an example of use in a pagelist template)


Hans


  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
_______________________________________________________________________
Dr. Frank F. Schweickert
AMSTEL Institute, Faculty of Science, University of Amsterdam
Science Park 904, Amsterdam, Room C2-1.22
Postal address: Postbus 94224, 1090 GE Amsterdam
Phone: +31 20 525-8475 (secr. -5886)
<a class="moz-txt-link-freetext" href="http://www.science.uva.nl/amstel">http://www.science.uva.nl/amstel</a>
<a class="moz-txt-link-freetext" href="http://www.natsim.net">http://www.natsim.net</a></pre>
</body>
</html>