Matrix Jump Pager - How do I show all pages?
Dozza
Joined: 2007-08-28
Posts: 112 |
Posted: Mon, 2011-03-07 15:36 |
Im using G2 at http://www.milliepilkington.co.uk I'd like the Page Jumper navigation at the bottom of Album pages (example http://www.milliepilkington.com/v/children/?g2_page=3) to show all the page numbers, rather than showing a link to first 6 then .... How do I change the default 6 figure to something higher, or how do I simply have G2 show ALL the page numbers. There will probably never be more than 15 at most. I've found a post (http://gallery.menalto.com/node/37179) that seems to be covering what I'm after but doesn't explain too well exactly which lines of code to add/change. Appreciate any help. |
|
Posts: 27300
I don't have much time or enthusiasm for G2 right now but see if adding:
to the album.tpl of the theme you are using does the trick.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 112
Thanks for trying Floridave
Unfortunately, that just repeats the pager in exactly the same format and doesn't show all pages still.
Sorry you've fallen out of love with G2. I'd like to move up to G3 but would have to rework the theme from scratch so I read.
Where is the 'show the first 6 page numbers hard coded?
Dozza
Posts: 27300
The webmaster of this page http://andrewprokos.com/photos/architecture/ has figured it out.
He is using the pgTheme ( I don't kow if that is the default setting or not ) http://andrewprokos.com/gallery2/themes/PGlightbox/theme.inc
Wright to him and see if he can help you out.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 1642
The matrix theme does not set the jump range and so picks up the G2 default of 6.
You can fix this by editing the standard settings in your theme.inc.
Change...
to
This will give a 16 page jump range which should be enough for you since you said the max is 15
--
dakanji.com
Posts: 112
Thanks for the tip off Floridave- i've PM'd him.
Posts: 112
Dayo
I've implemented into theme/matrix/local/them.inc but it has no effect, even after flushing templates.
Can I not simply change the G2 default of 6 in a file/config setting somewhere?
Dozza
Posts: 27300
GalleryTheme.class
$windowSize = isset($params['pageWindowSize']) ? $params['pageWindowSize'] : 6;
but as Dayo said his settings should have worked.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 1642
You can change the G2 default as per Dave's post but you should really be changing it at the theme level and my suggestion should have done it ... at least in G2.3.1 as I notice you have an older version.
An alternative way is to undo the previously suggested change and change ....
to
Better still, upgrade to G2.3.1 and the previously given code would work.
--
dakanji.com