Custom template for Search Results

Author Message

John Smith

Sunday 16 December 2007 10:14:26 am

Hi There,

Hope someone can help me. I have created a class named as "article_page" so that i can split the long pages into multiple pages based on the url/example below:

http://ez.no/ezpublish/documentation/customization/tips_tricks/splitting_an_article_over_several_pages

That bit is working no problems so far.

Article
1 -> 1
2 -> 2

Now when I am doing the search, it is giving me 1, 2 sort of names in the search results. Is there any way I can customize the search results with customized templates.

Please help....

Cheers

Softriva .com

Wednesday 19 December 2007 4:39:22 am

This works fine with me using ezwebin. Try looking at the ezwebin extension and see how this is done.

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 19 2025 04:40:37
Script start
Timing: Jan 19 2025 04:40:37
Module start 'layout'
Timing: Jan 19 2025 04:40:37
Module start 'content'
Timing: Jan 19 2025 04:40:38
Module end 'content'
Timing: Jan 19 2025 04:40:38
Script end

Main resources:

Total runtime0.5465 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0039 590.5859152.6250
Module start 'layout' 0.00390.0025 743.210939.4453
Module start 'content' 0.00650.5387 782.6563456.9688
Module end 'content' 0.54520.0013 1,239.62508.1563
Script end 0.5465  1,247.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.5462160.0002
Check MTime0.00130.2338160.0001
Mysql Total
Database connection0.00040.071110.0004
Mysqli_queries0.507092.7710540.0094
Looping result0.00050.0826520.0000
Template Total0.520795.320.2603
Template load0.00220.408020.0011
Template processing0.518494.853620.2592
Template load and register function0.00020.037910.0002
states
state_id_array0.00100.184210.0010
state_identifier_array0.00060.114720.0003
Override
Cache load0.00180.3311150.0001
Sytem overhead
Fetch class attribute can translate value0.00080.153320.0004
Fetch class attribute name0.00130.232920.0006
XML
Image XML parsing0.00020.040420.0001
class_abstraction
Instantiating content class attribute0.00000.001520.0000
General
dbfile0.00140.2555100.0001
String conversion0.00000.000940.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs