
kblm
User
Mar 26, 2009, 4:04 PM
Post #4 of 9
(3849 views)
Shortcut
|
|
Re: [ross] Increase the number of listings on the Admin Listings page
[In reply to]
|
Can't Post
|
|
Ross, I noticed that while this worked, it seemed to hard code the result set to whatever I placed in the variable. So if I put 100 in, I couldn't force it to only show 25 if I selected 25 and hit Search. Let me know if this is another work around: In list_functions.php I changed this line:
if (!$perPage) { $perPage = getFirstDefinedValue(@$lastState['perPage'], 25); } To this:
if (!$perPage) { $perPage = getFirstDefinedValue(@$lastState['perPage'], 100); } Now if I close the browser and log back in, it defaults the list to 100, however it now allows me to change to another value. If I wanted more, I could change the line to:
if (!$perPage) { $perPage = getFirstDefinedValue(@$lastState['perPage'], 500); } However, then it seems I need to add another <option> to the select list in list.php Let me know what you think. By the way....what stores the value of what option you chose in the search within the browser session? Is it a cookie? For example, if I choose a per page value of 5 from the dropdown and hit search.....that 5 value sticks unless I close the browser. -Kevin
|