restrictions on SearchPageLimit

Author Message

Marko Žmak

Tuesday 27 March 2007 3:32:53 am

I'm trying to customize the advanced serach on one eZ web and I came upon this issue. When not using template search, the search page limit can only be set to values of 5, 10, 20, 30, 50. This is because the SearchPageLimit parameter is used through this function:

function pageLimit( $searchPageLimit )
{
    switch ( $searchPageLimit )
    {
        case 1:
            return 5;

        case 2:
        default:
            return 10;

        case 3:
            return 20;

        case 4:
            return 30;

        case 5:
            return 50;
    }
}

So for example I cannot use the number 15 as search page limit.

I would like to know why is this resctriction made and is there a simple way to override it?
I know that I can use the template search, but I preffer using built in eZ search, since from my experience it seems that it works faster than template search.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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