Andy C.,

Habari uses a hierarchy of rewrite rules to use in deciding which page
to display, just as once it decides which page to display there is a
hierarchy of templates that it looks through to find the appropriate
one to use. Since in a url /search as a search result and /search as a
static page look the same, a design decision was made to have the
rewrite rule returning search results have a higher priority than a
page named search, leading to the results you saw. In this sense, I
guess it could be considered a feature. Any suggestions on how to make
this clearer on the wiki would be appreciated.

Rick


Andy C wrote:
> I want a 'Search' page so I created a page named 'Search' with a slug
> of 'search' and a PHP file called 'page.search.php'.
>
> However, when I clicked that page, it executed a search for the null
> string - /search?criteria=
>
> The Habari Wiki page describing the template page hierarchy
>
> http://wiki.habariproject.org/en/Template_File_Hierarchy#Search
>
> implies that 'page.search.php' should take precedence over the special
> 'search' page.
>
> If I rename to slug to 'find' and also rename the file to
> 'page.find.php', everything works fine.
>
> Is this a (documentation) bug or a feature ?
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to