[pmwiki-users] Feature request: Action lists in skins

David Spitzley dspitzle at wash.k12.mi.us
Tue Apr 5 15:26:43 CDT 2005


Okie-doke, I incorporated this into LayoutAdvanced


David

>>> "Patrick R. Michaud" <pmichaud at pobox.com> 04/05/05 3:58 PM >>>
The description is currently in 
http://www.pmwiki.org/wiki/PmWiki/LayoutAdvanced, and perhaps it's in
a Cookbook recipe as well, but here's a slightly better description.

To have a template (.tmpl file) include/display the contents of
another
wiki page, simply use

    <!--wiki:SomeGroup.SomePage-->

where SomeGroup.SomePage is the name of the page to be displayed.
$-substitutions work here, so the template file can specify

    <!--wiki:$Group.SomePage-->

which says to use "SomePage" within the group of the current page.
The directive can specify multiple pages to be examined, and only
the first of these is displayed, thus

    <!--wiki:$Group.SomePage Main.SomePage-->

displays "SomePage" in the current group if it exists, and
Main.SomePage
if it doesn't.  To always display Main.SomePage, even if
$Group.SomePage
exists, use something like

    <!--wiki:$Group.SomePage-->
    <!--wiki:Main.SomePage-->

which displays "SomePage" in the current group if it exists, and
follows
that with Main.SomePage.


Within page markup, the (:include ...:) directive is used to include/
display the contents of another wiki page.

Pm



More information about the pmwiki-users mailing list