[pmwiki-users] Page variable in php skin file

cguenette at globetrotter.net cguenette at globetrotter.net
Fri Dec 9 17:25:23 CST 2011

Another question...

I cannot figure out how used variables in skin. I guess {$LastModified} and {$LastModifiedBy} are not evaluate in the <!--function: markup...

I want do to something like
      if {$LastModifiedBy}is empty, then display {$LastModifiedHost}
but just try to display information first.

Here what I tried (http://allaitementquebec.org/AQWiki/):


function fctGbt_PrintInfoPage($strLastModified, $strLastModifiedBy){
    //For test (doesn't work)... later, add tested in last author and display Name or IP
    print "Modifié le $strLastModified par $strLastModifiedBy";

<div id="gabarit_infopage">
   Modifié le {$LastModified} par {$LastModifiedBy}<br>   <-Original that works OK
   <!--function:fctGbt_PrintInfoPage {$LastModified} {$LastModifiedBy}--><br>           

Result in Browser
Modifié le 08 décembre 2011 à 13h45 par Allaitement Québec
(function with arg) Modifié le Main.Accueil par 08 décembre 2011 à 13h45 Allaitement Québec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20111209/b1600c49/attachment.html>

More information about the pmwiki-users mailing list