[solved] parameters in URL with search module

Author Message

Antoine Schmid

Monday 30 January 2006 8:15:02 am

Hi there,

I'd like to add a parameter in a URL to split between two ways of having my search results displayed. ex:.../search?SearchPageLimit=1&mode=1&SearchText=search

Does anyone know how I can retrieve the 'mode=1' within a override of the search template ?

There is perhaps a better way of doing it, but I can't think of any for now. The problem with the search module is that we can't use the commun way of passing a parameter (by adding .../(mode)/1 at the end of the URL) because it enters in the search field.
And I can't have some limitations in the override.ini.append.php file because the search module isn't linked with the content of my site.

Thanks for your answer

Antoine

Thomas Nunninger

Monday 30 January 2006 8:40:42 am

Hi,

have a look at ezhttp (http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_operators/data_and_information_extraction/ezhttp)

Have a nice day

Thomas

Antoine Schmid

Tuesday 31 January 2006 12:15:54 am

Well, it works...

Thank you ! I've lost enough time with this little stuff...

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 03:30:14
Script start
Timing: Jan 19 2025 03:30:14
Module start 'layout'
Timing: Jan 19 2025 03:30:14
Module start 'content'
Timing: Jan 19 2025 03:30:15
Module end 'content'
Timing: Jan 19 2025 03:30:15
Script end

Main resources:

Total runtime0.7679 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 589.2891152.6406
Module start 'layout' 0.00840.0049 741.929739.4766
Module start 'content' 0.01320.7531 781.4063502.5313
Module end 'content' 0.76640.0015 1,283.93758.1250
Script end 0.7679  1,292.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4444160.0002
Check MTime0.00150.1931160.0001
Mysql Total
Database connection0.00100.133510.0010
Mysqli_queries0.713892.9542570.0125
Looping result0.00060.0838550.0000
Template Total0.724494.320.3622
Template load0.00210.279820.0011
Template processing0.722294.049320.3611
Template load and register function0.00020.020310.0002
states
state_id_array0.00310.407010.0031
state_identifier_array0.00110.139520.0005
Override
Cache load0.00180.2319190.0001
Sytem overhead
Fetch class attribute can translate value0.00050.071520.0003
Fetch class attribute name0.00130.171540.0003
XML
Image XML parsing0.00290.378820.0015
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00290.3726160.0002
String conversion0.00000.002540.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs