search.php changes

Author Message

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:07:32
Script start
Timing: Jan 18 2025 19:07:32
Module start 'layout'
Timing: Jan 18 2025 19:07:32
Module start 'content'
Timing: Jan 18 2025 19:07:32
Module end 'content'
Timing: Jan 18 2025 19:07:32
Script end

Main resources:

Total runtime0.0168 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 587.7969152.6094
Module start 'layout' 0.00530.0040 740.406339.4297
Module start 'content' 0.00930.0055 779.835985.3203
Module end 'content' 0.01480.0020 865.156330.3047
Script end 0.0168  895.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002715.7819140.0002
Check MTime0.00126.9896140.0001
Mysql Total
Database connection0.00074.054110.0007
Mysqli_queries0.003219.123330.0011
Looping result0.00000.160410.0000
Template Total0.00169.710.0016
Template load0.00095.157010.0009
Template processing0.00084.477110.0008
Override
Cache load0.00063.721910.0006
General
dbfile0.00116.482880.0001
String conversion0.00000.065340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs