[pmwiki-users] Re: variables for customization

chr at home.se chr at home.se
Thu Jul 7 04:39:21 CDT 2005


On Thu, 7 Jul 2005, Patrick R. Michaud wrote:

> As far as keeping thing straight for those who need to understand
> the differences, there are really only three things to know.  
> 
> 1.  Things like "{$Group}" and "{$LastModified}" are *markup*.  
>     You can call them "variables" or "markup variables" if it pleases 
>     you, but they don't really exist as variables anywhere in the 
>     PmWiki code, nor is there an enforced correspondence between them
>     and any PHP variable.  They're just substitutions in the Markup() 
>     sequence, the same as [=...=] or (:include:) or (:table:) or 
>     any other markup.
> 
> 2.  A limited set of $-substitutions -- basically anything that 
>     corresponds to a page attribute -- are not PHP variables and 
>     are only available through the FmtPageName() subroutine.  
>     The complete set of these special substitutions is $Group, 
>     $Name, $FullName, $PageUrl, $Title, $Titlespaced, $Namespaced, 
>     $Groupspaced, $LastModifiedBy, $LastModifiedHost, and $LastModified.  
>     These items cannot just be standard PHP variables because often
>     PmWiki needs to obtain the url, name, group, title, etc. of a page 
>     other than the one currently being viewed by a browser.
> 
> 3.  With minor exceptions, basically everything else you see that
>     looks like $VarName is a PHP variable.

I appended the above to Test.VariablesAndFriends

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list