[pmwiki-users] Stuck creating markup to add self link to included pages
Patrick R. Michaud
pmichaud at pobox.com
Tue Oct 2 10:12:41 CDT 2007
On Tue, Oct 02, 2007 at 05:00:08PM +0200, Dominique Faure wrote:
> a] When the (:include:) directive retrieves a page content, the
> included text is processed (qualified) to transform "relative"
> variable references to "absolute" ones, making {$SomeVar} becomes
> {Group.IncludedPage$SomeVar}, which resolves as expected when the page
> is finally rendered.
> The internal $QualifyPatterns maintains the dedicated
> search/replacement regular expressions.
Correct.
> b] PageVar($pagename, '$VarName') is the php function able to retrieve
> the value of a Wiki variable.
Yes, but it's more precise to say that PageVar($pagename, '$VarName')
retrieves the value of a page variable ** for the page given by $pagename ** .
I make this distinction only because many recipe writers lose site of
the fact that page variables are normally associated with pages. :-)
Pm
More information about the pmwiki-users
mailing list