Forums / Developer / Custom search engine and results

Custom search engine and results

Author Message

Jonathan Marsigny

Tuesday 28 December 2004 7:02:01 am

Hello,

I want to custom my search.
I would to search in 'Keyword' box (datatype) only and not in the title or in the main text.

Can I use 'fetch' and how ?

Regards,

Jonathan

Ɓukasz Serwatka

Tuesday 28 December 2004 7:13:39 am

Hi,

You can search in class attribute.

{section loop=fetch( content, search, hash( text, 'your_text',
           class_attribute_id, your_class_attribute_id ) )}
   {$:item.name}<br />
{/section}

http://ez.no/ez_publish/documentation/reference/data_fetching/content/search

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog