Search Result View

Author Message

Mazin Mustafa

Monday 14 March 2005 7:26:13 am

Search results take over the whole screen. Where is the best place to control (CSS) how the results are displayed? I searched the site but didn't see a hint.
I found content/search.tpl and node/search .tpl. Is there a view used for the results? How is it tied in ?
My screen is a simple CSS controlled 3 column layout. search results just break the whole thing and I would like to contrain them to the maincontent area.

Thanks and regards,
Mazin

Ɓukasz Serwatka

Monday 14 March 2005 10:36:32 pm

Hi,

You can override /content/search.tpl to change search results view.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Mazin Mustafa

Tuesday 15 March 2005 7:48:42 am

Thank you for the reply. I had already tried your suggestion as my initial posting indicates. I am using version 3.4.0. I tried using a minimal search.tpl override template with a singe <h1> blah blah </h1> in it. The view still want the whole screen.

I see the same behavior in the /user templates such as login.

Thanks again and hope we can get an answer soon.

Mazin

Mazin Mustafa

Wednesday 16 March 2005 9:43:42 am

Ok, I figured it out as it was my bad after all. It turns out that I had nested some css inside a section block of code. The search path caused the css inside the section to be skipped. Hence, my formatting was broken.

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 22:31:22
Script start
Timing: Jan 18 2025 22:31:22
Module start 'layout'
Timing: Jan 18 2025 22:31:22
Module start 'content'
Timing: Jan 18 2025 22:31:23
Module end 'content'
Timing: Jan 18 2025 22:31:23
Script end

Main resources:

Total runtime0.7059 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.9219152.6094
Module start 'layout' 0.00480.0023 741.531339.4141
Module start 'content' 0.00700.6975 780.9453543.7266
Module end 'content' 0.70450.0014 1,324.671912.1875
Script end 0.7059  1,336.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4555160.0002
Check MTime0.00130.1799160.0001
Mysql Total
Database connection0.00060.080710.0006
Mysqli_queries0.660293.5211600.0110
Looping result0.00060.0845580.0000
Template Total0.674995.620.3375
Template load0.00230.326820.0012
Template processing0.672695.281120.3363
Template load and register function0.00010.020410.0001
states
state_id_array0.00190.262210.0019
state_identifier_array0.00120.167120.0006
Override
Cache load0.00200.2802190.0001
Sytem overhead
Fetch class attribute can translate value0.00060.087320.0003
Fetch class attribute name0.00150.219650.0003
XML
Image XML parsing0.00080.107020.0004
class_abstraction
Instantiating content class attribute0.00000.001650.0000
General
dbfile0.00060.0890180.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs