[pmwiki-users] How to list pages that have a page password

Randy randy at brownragfilms.com
Wed Apr 9 19:53:24 CDT 2008


I want to use pagelist to list password-protected pages -  
specifically, where $PasswdRead begins with ****

I can successfully make conditions:
(:if eq '****' {(substr '{{*$FullName}$PasswdRead}' 0 4)} :) the page  
has a password!
(:if eq '***X' {(substr '{{*$FullName}$PasswdRead}' 0 4)} :) this line  
should not appear (it just proves the condition isn't always true)

But in a pagelist, this fails:
(:pagelist group=Public if="eq '****' {(substr '{{=*$FullName} 
$PasswdRead}' 0 4)}" :)

I've tried other variations of the syntax, with no success yet.

Have I just not stumbled on the right syntax? Or does pagelist not  
handle certain conditions?

Randy



More information about the pmwiki-users mailing list