Search - result per page proble

Author Message

fabio bongiovanni

Thursday 01 September 2005 3:52:50 am

Hello and thanks in advice
i've modified search.tpl template changing the number of results per page,

{let search=false()}
{section show=$use_template_search}
{set page_limit=50}
{set search=fetch(content,search,
hash(text,$search_text,
section_id,$search_section_id,
subtree_array,$search_subtree_array,
sort_by,array('modified',false()),
offset,$view_parameters.offset,
limit,$page_limit))}
{set search_result=$search['SearchResult']}
{set search_count=$search['SearchCount']}
{set stop_word_array=$search['StopWordArray']}
{set search_data=$search}
{/section}

But i'm still getting 10 results per page,

does anyone know where i've made a mistake?

Regards

Fabio

Kristof Coomans

Thursday 01 September 2005 5:07:08 am

Did you clear template caches?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

fabio bongiovanni

Thursday 01 September 2005 5:34:37 am

Hi Kristof
Thanks for your reply

yes, i've tried first with partial cache delete, only shop, and the second time with full cache delete,
but with no results.

Regards

Fabio

fabio bongiovanni

Tuesday 13 September 2005 4:58:11 am

does anyone has any idea why i'm getting always 10 results per page?

Regards

Fabio

Kristof Coomans

Tuesday 13 September 2005 11:53:24 pm

Is $use_template_search true?

You need to modify site.ini to use template search:

[SearchSettings]
SearchViewHandling=template

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

fabio bongiovanni

Wednesday 14 September 2005 12:32:35 am

Hi Kristof

This was the issue

Thanks a lot

Fabio

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.