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/):

gabarit.php
--------------------------
<?php

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";
}

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


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
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to