Admin page - number of entries shown

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

Admin page - number of entries shown

Post by DortoH »

Version 0.9

Is there anyway to change the default number of entries per page shown under Edit Entries on the admin side? The default is 12 but I regularily am working on 15-20 entries at a time, either ready to publish, or in progress.

Thanks!

Rod
Rod
winkiller
Regular
Posts: 77
Joined: Tue May 17, 2005 7:52 pm
Location: Munich, Germany
Contact:

Post by winkiller »

my s9y 0.9 has 10 as a default, but manually you can change it like this:

- open include/admin/comments.inc.php
in line 13, replace

Code: Select all

$commentsPerPage = (!empty($serendipity['GET']['filter']['perpage']) ? $serendipity['GET']['filter']['perpage'] : 10);
with

Code: Select all

$commentsPerPage = (!empty($serendipity['GET']['filter']['perpage']) ? $serendipity['GET']['filter']['perpage'] : 20);
I'm thinking about making that a config option, but couldn't yet decide if it's necessary as I haven't heard about anyone who wouldn't just select "20" from the dropdown list and click on "go" besides you ;)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Serendipity 0.9 also remembers the amount of entries you last chose via Cookies...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply