Sorry, I should have made the question clearer - I was already aware of most of what you wrote. My question was about how to use a different default template for searches than for pagelists. Perhaps a conditional markup in the #default PagelistTemplate would do it (something like. (:if search:)), or would we need some extra php in
config.php?<br><br>Francis<br><br><br>On 01/03/07, Patrick R. Michaud <<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>> wrote:<br>> On Thu, Mar 01, 2007 at 11:35:01PM +0000, Francis Casson wrote:<br>> > Is there a way to specify a different default PageListTemplate for
<br>> > searches and pagelists?<br>> <br>> Yes.<br>> <br>> The fmt= parameter to (:pagelist:) can specify a page, a section<br>> within a page, or a simple section. For example:<br>> <br>> fmt=PageXYZ - uses all of PageXYZ as the template
<br>> <br>> fmt=PageABC#xyz - uses the [[#xyz]] section on PageABC as the template<br>> <br>> fmt=#xyz - searches for an [[#xyz]] section in the current page,<br>>
Site.LocalTemplates, and Site.PageListTemplates,<br>> using the first one it finds<br>> <br>> So, if you want to have customized templates for your site, simply<br>> add them to Site.LocalTemplates
or as custom pages, and then use<br>> the fmt= parameter to refer to them.<br>> <br>> If you define a [[#default]] template in Site.LocalTemplates, then<br>> pagelists and searches will use that template by default. (Note that
<br>> <a href="http://pmwiki.org">pmwiki.org</a> does this -- see <a href="http://www.pmwiki.org/wiki/Site/LocalTemplates">http://www.pmwiki.org/wiki/Site/LocalTemplates</a> .)<br>> <br>> Hope this helps.<br>>
<br>> Pm<br>> <br>