[pmwiki-users] condition for pagenames

Hans design at softflow.co.uk
Sat Apr 15 11:23:08 CDT 2006


Saturday, April 15, 2006, 4:15:22 PM, noskule wrote:
>>$group = PageVar($pagename, '$Group');
>>if(PageExists(Profiles.$group) $EditTemplatesFmt ="";
>>
>>  
>>
> hm, I checkt this, but "PageExists" seams allways to be true, if the
> page exists or not.

try this instead:

$group = PageVar($pagename, '$Group');
$profname = MakePagename($pagename, "Profiles.$group");
if(PageExists($profname)) $EditTemplatesFmt ="";


Best,
 Hans                           





More information about the pmwiki-users mailing list