[Pmwiki-users] Moving author field to the top

Nathan Jones nathanj
Mon Mar 1 22:40:19 CST 2004


Robin Sheat wrote:
>Hmm. My next feature request is the ability to combine templates. eg, I 
>have two different templates that are very similar to each other (one 
>does the /Ours group, the other does everything else). 
>
>I'm wondering about the feasibility of having a master template that 
>defines a bunch of sections that are used unless they are overridden in 
>the specific templates. 

With the exception of a few specific $Page...Fmt variables, the sections
you define don't appear in the output unless something in your config.php
or $Group.php says so. Not sure how you'd go about changing this default
behaviour to include everything by default, or whether that's a good
idea.

Still, you should be able to do something like:

<!--PageNotOursFmt-->
This appears on every wiki page, but not in the Ours group.
<!--PageOursFmt-->
This only appears on wiki pages in the Ours group.

...then turn on $PageNotOursFmt in config.php, turn it off in Ours.php,
plus turn on $PageOursFmt in Ours.php.

I'm not sure of the recommended way (in config.php) to tell PmWiki to
display the contents of a variable. Anyone? Pm?

-- 
Nathan Jones



More information about the pmwiki-users mailing list