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.