New search action

Author Message

Tore Skobba

Thursday 05 February 2004 2:03:36 am

Hi

I need an new search action, in addition to the advanced search, search etc. However, I am really lost on how to "start" making this. I was thinking about adding an user_search.tpl to my design/templates/content folder. However, this did not work, i.e this link does not work:

<a href={"/content/user_search/"|ezurl}>{"User search"|i18n("design/jilo/layout")}</a>

Does anybody here have any tips?

Cheers
Tore

Wenyue Yu

Thursday 05 February 2004 4:23:37 am

Hi,

This is not a simple task, you need to make a extension and add module "user_search".
You need to write something like following in your module.php:

<pre>
$ViewList['user_search'] = array(
'functions' => array( 'read' ),
'default_navigation_part' => 'ezcontentnavigationpart',
'script' => 'usersearch.php',
'params' => array( ),
'unordered_params' => array( 'offset' => 'Offset' ) );
</pre>

then you need to write usersearch.php and usersearch.tpl.

Regards,
wenyue

Tore Skobba

Thursday 05 February 2004 4:37:25 am

Hi

Thanks for help, think I will instead make an "misc" content class with only a name. Then make an content object of that class, and then in the node override template make an customized advanced search functionality. Since that was basically what I wanted.

Cheers
Tore

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:33:32
Script start
Timing: Jan 19 2025 03:33:32
Module start 'layout'
Timing: Jan 19 2025 03:33:32
Module start 'content'
Timing: Jan 19 2025 03:33:34
Module end 'content'
Timing: Jan 19 2025 03:33:34
Script end

Main resources:

Total runtime1.5354 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.0070 589.0547152.6094
Module start 'layout' 0.00700.0031 741.664139.4141
Module start 'content' 0.01011.5239 781.0781472.9844
Module end 'content' 1.53400.0014 1,254.06258.1875
Script end 1.5354  1,262.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2571160.0002
Check MTime0.00140.0894160.0001
Mysql Total
Database connection0.00110.070810.0011
Mysqli_queries1.483496.6091570.0260
Looping result0.00060.0398550.0000
Template Total1.492697.220.7463
Template load0.00260.170820.0013
Template processing1.490097.039420.7450
Template load and register function0.00010.009510.0001
states
state_id_array0.00120.078010.0012
state_identifier_array0.00130.081620.0006
Override
Cache load0.00230.1466290.0001
Sytem overhead
Fetch class attribute can translate value0.00140.090320.0007
Fetch class attribute name0.00200.129530.0007
XML
Image XML parsing0.00020.014520.0001
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00070.0469100.0001
String conversion0.00000.000640.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
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/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: 18
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs