Rick is right in that regard. However, I'm not sure that *is* the right decision to make. I think it would be better to have page.search take higher priority, since if you are creating it you probably are intending to override.
Honestly, the easiest solution for now is to just name your page something else (for the slug). In the future, we plan to have a way to edit default rules so you would be able to point the standard /search page to something else. On Nov 20, 2008, at 2:18 PM, rick c wrote: > > 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 -~----------~----~----~----~------~----~------~--~---
