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 &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt; wrote:<br>&gt; On Thu, Mar 01, 2007 at 11:35:01PM +0000, Francis Casson wrote:<br>&gt; &gt; Is there a way to specify a different default PageListTemplate for
<br>&gt; &gt; searches and pagelists?<br>&gt; <br>&gt; Yes.<br>&gt; <br>&gt; The fmt= parameter to (:pagelist:) can specify a page, a section<br>&gt; within a page, or a simple section.&nbsp;&nbsp;For example:<br>&gt; <br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; fmt=PageXYZ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - uses all of PageXYZ as the template
<br>&gt; <br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; fmt=PageABC#xyz&nbsp;&nbsp; - uses the [[#xyz]] section on PageABC as the template<br>&gt; <br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; fmt=#xyz&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- searches for an [[#xyz]] section in the current page,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Site.LocalTemplates, and Site.PageListTemplates,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using the first one it finds<br>&gt; <br>&gt; So, if you want to have customized templates for your site, simply<br>&gt; add them to Site.LocalTemplates
 or as custom pages, and then use<br>&gt; the fmt= parameter to refer to them.<br>&gt; <br>&gt; If you define a [[#default]] template in Site.LocalTemplates, then<br>&gt; pagelists and searches will use that template by default.&nbsp;&nbsp;(Note that
<br>&gt; <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>&gt; <br>&gt; Hope this helps.<br>&gt; 
<br>&gt; Pm<br>&gt; <br>