[pmwiki-users] fox: custom ptvfmt

Peter & Melodye Bowers pbowers at pobox.com
Mon Mar 3 01:07:42 CST 2008


-OFFLIST-

Noskule,

I believe you can accomplish what you want without use of a PV in this case.
If you need PV for some reason I'm not understanding then this solution will
not work...  

Explanation: (:include ...:) supports sections and ignores conditional
markup.

See below for alterations to both your Wikipage and your
LayoutTemplate.Blog.  It worked in a very quick test I put together on my
system (you can see the source of my quick test down below).

Be sure to keep the section definitions consistent in both your wikipage and
your layouttemplate.blog -- otherwise you could end up with a messy
situation where one page includes another which includes the first.
Probably pmwiki handles this, but just beware...

-Peter

> Wikipage - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - - -
> (:include LayoutTemplate.Blog:)
> (:pagetype: Blog:)
> (:Title: XXX:)
> (:if false:)
> [[#Text]]
> Bla Bla Bla Bla Bla Bla Bla Bla
> Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla
> [[#EndText]]
> (:ifend:)
> (:Author: :)
> (:Time: :)
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - - - - - - - - -
> 
> LayoutTemplate.Blog- - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - -
> !! {*$Title}
> [-Author: {*$Author} Time:{*$Time}-]
> (:include {*$FullName}#Text#EndText:)
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - - - - - - - - -

===(wikipage)===
(:include Group.Template:)

(:if false:)
[[#Text]]
Here's some cool text that is not seen here down below but should appear up
there between the stuff of the template.
[[#EndText]]
(:ifend:)

===(template)===
Some stuff that is in my template
(:include {*$FullName}#Text#EndText:)
Some other stuff that is in my template




More information about the pmwiki-users mailing list