[pmwiki-users] New recipe: PTVInclude
Hans
design5 at softflow.co.uk
Tue Apr 17 09:09:49 CDT 2007
Tuesday, April 17, 2007, 2:45:17 PM, Patrick wrote:
> It's another of those 2.2.0-beta features that I haven't had
> time/energy to document yet. If basepage= is provided, then all
> relative links and page variables are interpreted relative
> to basepage.
Well it works! I am amazed. I only needed to replace the {$$name}
variables in the template with {$:name} variables.
No need to go through the preg_replace routine.
In fact the output with (:include Template base=Page:) is better, and
gets all markup right.
I should note here that one does not need to use
Name: {$:Name}
Address: {$:Address}
in the template in this format, but can use {$Name} and {$Address}
in any way, like:
Dear {$Name} of {$Address}, ...
which opens all the possibilities of output in different formats,
styles and layout, just as I wanted with PTVInclude.
I will remove PTVInclude, or perhaps document there this great use of
(:include TemplatePage base=PageName:)
Thanks a lot!
~Hans
More information about the pmwiki-users
mailing list