[pmwiki-users] search results and pagelist
Francis Casson
pmwiki at bleaksky.net
Thu Mar 1 18:25:15 CST 2007
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?
Francis
On 01/03/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070302/91b8805f/attachment.html
More information about the pmwiki-users
mailing list