[pmwiki-users] Generic link to Profiles.{$AuthId}

Stéphane Heckel hsteph at club-internet.fr
Thu Nov 6 10:39:38 CST 2008


"DaveG" wrote :

> The key to the question is 
> http://www.pmwiki.org/wiki/PmWiki/OtherVariables
> Quoting the expression like this should work:
>  $FmtPV['$PageAuthId'] = 'MakePageName("Profiles.Template", $AuthId)';

It returns an empty string, ... $AuthId is not interpreted ?
If I replace $AuthId by "abc def", I get the expected result, that is to say 
"Profiles.AbcDef", ...

I have tried to make it in 2 lines as well, without success, ...

$myvar = MakePageName("Profiles.Template", $AuthId);
$FmtPV['$PageAuthId'] = "'" . $myvar . "'"; #capture contents of $myvar (as 
described in PmWiki/OtherVariables)

What's the magic here ?

SH 






More information about the pmwiki-users mailing list