[pmwiki-users] condition for pagenames

noskule noskule at gmx.net
Sat Apr 15 12:18:47 CDT 2006


Hans schrieb:

>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                           
>
>  
>
yep, works best, thanks very much
grz nos





More information about the pmwiki-users mailing list