[pmwiki-users] search results and pagelist
Patrick R. Michaud
pmichaud at pobox.com
Thu Mar 1 17:45:11 CST 2007
On Thu, Mar 01, 2007 at 11:35:01PM +0000, Francis Casson wrote:
> Is there a way to specify a different default PageListTemplate for
> searches and pagelists?
Yes.
The fmt= parameter to (:pagelist:) can specify a page, a section
within a page, or a simple section. For example:
fmt=PageXYZ - uses all of PageXYZ as the template
fmt=PageABC#xyz - uses the [[#xyz]] section on PageABC as the template
fmt=#xyz - searches for an [[#xyz]] section in the current page,
Site.LocalTemplates, and Site.PageListTemplates,
using the first one it finds
So, if you want to have customized templates for your site, simply
add them to Site.LocalTemplates or as custom pages, and then use
the fmt= parameter to refer to them.
If you define a [[#default]] template in Site.LocalTemplates, then
pagelists and searches will use that template by default. (Note that
pmwiki.org does this -- see http://www.pmwiki.org/wiki/Site/LocalTemplates .)
Hope this helps.
Pm
More information about the pmwiki-users
mailing list