Welcome Guest, Not a member yet? Register   Sign In
How to change the amount of rows in a listing
#1

[eluser]ozstar[/eluser]
Hi,

I want to change a listing of categories which at the moment go to 10 rows, then one has to go to the next page etc for another 10 and so on for several pages.

I wish this list to be 50.

I have looked in Pagination but there does not seem to be any number which suggests 10 anything.

Any ideas where I should look please?

Thanks

John
#2

[eluser]Vega[/eluser]
If I understand you correct, you want to display 50 per page, you should set per_page in your pagination config array:

Code:
$config['per_page'] = 50;

See: http://ellislab.com/codeigniter/user-gui...ation.html
#3

[eluser]juanvillegas[/eluser]
Yes that's correct. I think 10 may be the default parameter.
#4

[eluser]ozstar[/eluser]
Hi and thanks..

In the Pagination.php there is no rference to this line..

Code:
$config['per_page']

There is this.. which as you can see I changed to 50 and that works on the listing of products, but not 'categories' on another page.

Code:
var $base_url            = ''; // The page we are linking to
    var $total_rows          = ''; // Total number of items (database results)
    var $per_page             = 50; // Max number of items you want shown per page
    var $num_links            =  2; // Number of "digit"

I am did a search of all files for.. $config - but it came up zero.. ?

Where else could I look?

Thanks again.

John




Theme © iAndrew 2016 - Forum software by © MyBB