GetSimple Support Forum
Number of Pages (per page) in Admin - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5)
+--- Thread: Number of Pages (per page) in Admin (/showthread.php?tid=1298)



Number of Pages (per page) in Admin - patriotmedia - 2011-02-10

Is there a way to set the number of pages per page of the Page Mangement, well... page... in the admin area? I'd like to ultimately be able to view all pages on one screen - so either turing the pagination option off, or simply setting it to a high number so that it never kicks over to other pages...

Thanks!
Chris


Number of Pages (per page) in Admin - JWH_Matthew - 2011-02-10

Try line 146 of:
Code:
admin/ template/ js/ jquery.getsimple.js
should look like this:
Code:
$('table.paginate tr').quickpaginate( { perpage: 15, showcounter: true, pager : $("#page_counter") } );

You could change it to:
Code:
$('table.paginate tr').quickpaginate( { perpage: 1500, showcounter: true, pager : $("#page_counter") } );

My changed code says to display up to 1500 pages per page vs the original 15 pages.

Let me know if this works, we may want to add a disable/enable and an option in gsconfig.php


Number of Pages (per page) in Admin - ccagle8 - 2011-02-10

not sure if this is just in GS3.0 or in 2.03, but you can also turn off pagination within gsconfig.php


Number of Pages (per page) in Admin - patriotmedia - 2011-02-10

Yes - this worked fine. FYI there are two lines like that in the code. I tried both and it's the first one - line 153. Unsure what the second reference is to - line 181.

Thanks!
Chris


Number of Pages (per page) in Admin - patriotmedia - 2011-02-10

An extention to my original question - is there a way to arrange the pages in this list other than alphabetical by slug?


Number of Pages (per page) in Admin - ccagle8 - 2011-02-10

not yet. we might be adding sorting headers in the future, but it unfortunately wont be in the next release... (3.0)


Number of Pages (per page) in Admin - mvlcek - 2011-02-10

patriotmedia Wrote:An extention to my original question - is there a way to arrange the pages in this list other than alphabetical by slug?

The I18N plugin (http://get-simple.info/extend/plugin/i18n/69/), which can be used even if you don't have multiple languages on your site, sorts the pages by page title.


Number of Pages (per page) in Admin - Ampersand - 2011-11-22

Well, I have the same problems: too few pages on admin allpages screen and sorted in some strange order. First tried this:
ccagle8 Wrote:not sure if this is just in GS3.0 or in 2.03, but you can also turn off pagination within gsconfig.php
http://get-simple.info/wiki/config:gsconfig
Code:
# Turn on paging for long lists of pages
define('GSPAGER', FALSE);

But did not work neither in 2.03.1 nor in 3.0(mistaken), just pager buttons disappeared. I peeked into pages.php and if it says only line
Code:
<?php if(defined('GSPAGER')) { ?><div id="page_counter" class="qc_pager"></div><?php } ?>
this <div> gets not printed and in line 79 table is classified "paginate"
Code:
<table id="editpages" class="edittable highlight paginate">
so it looks impossible to get rid of this js pagination with gsconfig.php. Any more friendly way than changing JS template to achieve it?



As to pages arrangement additional buttons ↑ ↓ would be enough to be added to present # X


Number of Pages (per page) in Admin - mvlcek - 2011-11-22

Ampersand Wrote:so it looks impossible to get rid of this js pagination with gsconfig.php. Any more friendly way than changing JS template to achieve it?

remove define('GSPAGER',...) from gsconfig.php or put a # in front of it to make it a comment.


Number of Pages (per page) in Admin - Ampersand - 2011-11-22

Sorry, must have said unclearly - already tried just 'next' 'previous' buttons disappeared from below the list in 2.03.1. Number of pages remained 15. No way without altering "paginate" class.


Number of Pages (per page) in Admin - Ampersand - 2011-12-21

marhaba Wrote:
ccagle8 Wrote:you can also turn off pagination within gsconfig.php

How?

Look above how to change your gsconfig.php file.

PS. I must have done somthing wrong in situation decribed in my above posts. gsconfig.php command works fine only from 3.0 above. In earlier version you have to change js files as described above.