Forums / Developer / search.php changes
David Jones
Friday 08 December 2006 4:29:41 am
I have found that I can change the template used by the search results by finding:
$Result = array(); $Result['content'] =& $tpl->fetch( "design:content/search.tpl" ); $Result['path'] = array( array( 'text' => ezi18n( 'kernel/content', 'Search' ), 'url' => false ) );
in /kernel/content/search.php:And addng
$Result['pagelayout'] = 'pagelayout_search.tpl';
This enables me to have a new template, and set overrides etc but still the menu is missing.
Is there a list of other such vars. ($Result['node'])? which might help?
The admin site access seems to do what I want with search results. It displays them and the menu is still available. How can I achieve this?
Many thanks