[pmwiki-users] Function in .tmpl file (Repost)

Dominique Faure dominique.faure at gmail.com
Mon Mar 27 06:38:01 CST 2006


On 3/27/06, Thomas Lederer <celok at gmx.net> wrote:
> Hi there,
> without urging anyone, maybe here could someone help me code this :)
>
> The plan would be to call a function with $AuthID as argument, and being
> able to use a new variable $RealLDAPName (or something) as well in a
> Template file or a WikiPage.
>
> Is that possible?
>

Make it a specific markup directive. Add something like below into
your php file:

Markup('LdapRealName', 'directives',
     '/\\(:LdapRealName (.*?):\\)/e',
     "LDAPRetrieval(\$pagename,PSS('$1'))");



Regards,
Dom




More information about the pmwiki-users mailing list