Override pagelayout.tpl for the search result page?

Author Message

Juan Camilo

Friday 28 April 2006 2:59:48 pm

Hallo people, I need the to override pagelayout.tpl when the url to be loaded is <<site>>content/search by modifying override.ini.append.php but I don't know yet what condition I must specify. Should it be something like this?

[search_results]
...
Match[class_identifier]=search

Nabil Alimi

Wednesday 03 May 2006 3:04:23 am

Hi Johannes,

I suggest that you use the layout module to define which template you want to use.

First you'll need to add a rule in your design.ini and create the corresponding template.
Take a look at this :
http://ez.no/doc/ez_publish/technical_manual/3_7/reference/modules/layout

With this, you can somehow override the pagelayout on purpose.

layout/set/custom_search_view/content/advancedsearch/?foo=&bar=....

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

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 31 2025 04:32:57
Script start
Timing: Jan 31 2025 04:32:57
Module start 'layout'
Timing: Jan 31 2025 04:32:57
Module start 'content'
Timing: Jan 31 2025 04:32:57
Module end 'content'
Timing: Jan 31 2025 04:32:57
Script end

Main resources:

Total runtime0.0163 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.0057 588.3594151.2266
Module start 'layout' 0.00570.0033 739.585936.6797
Module start 'content' 0.00900.0058 776.265690.3125
Module end 'content' 0.01480.0014 866.578129.9922
Script end 0.0162  896.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.8551140.0002
Check MTime0.00116.8706140.0001
Mysql Total
Database connection0.00095.805610.0009
Mysqli_queries0.002716.558330.0009
Looping result0.00000.092310.0000
Template Total0.00116.610.0011
Template load0.00085.095110.0008
Template processing0.00021.450310.0002
Override
Cache load0.00063.537810.0006
General
dbfile0.00148.662280.0002
String conversion0.00000.042540.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