[pmwiki-users] condition for pagenames

noskule noskule at gmx.net
Sat Apr 15 10:15:22 CDT 2006


Hans schrieb:

>Friday, April 14, 2006, 1:56:34 PM, noskule wrote:
>  
>
>>>(:if exists Profiles/{$Group}:)
>>>
>>>... might be a good place to start ... but I haven't tested it.
>>>      
>>>
>
>  
>
>>this works, but how do I define it in config or skin.php to
>>    
>>
>
>  
>
>>disable the EditTemplatesFmt ($EditTemplatesFmt ="";)
>>    
>>
>
>$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. I checked with:

/#$group = PageVar($pagename, '$Group');/
$group = 'yiztqL';
if(PageExists(Profiles.$group)) {
	$test = "die Gruppe \'\'\'".$group."\'\'\' ist vorhanden"; 
	$EditTemplatesFmt = 'Site.$[SubjectDirectory]Template';
	}
else	{
	$test = "die Gruppe \'\'\'".$group."\'\'\' ist nicht vorhanden"; 
	}
$FmtPV['$test'] = "'$test'";

and put

    {$test}
into a wikipage . . . . .
do you have any idea way?

>Best,
> Hans                           
>
>
>  
>





More information about the pmwiki-users mailing list