Hello,
I’ve got a problem with the maxigallery pagination function.
I’ve got a query with about 200 subpages, now everything is working, but i have 200 buttons in the pagination (1 for every page) and of course the previous and next button.
Can anyone help me out to create this pagination:
prev | 1 | 2 | 3 | 4 | 5 | 6 | ...... | 200 | next
This is what Doze told me to do sofar, i just need someone to finish this for me.
Quote from: doze at Feb 28, 2010, 09:10 AM
Basically what you need to do is to make a phx modifier to the pagenumbers placeholder, eg. replace the default [+maxigallery.pagenumbers+] placeholder with something like [+maxigallery.pagenumbers:stripnumbers=`[+maxigallery.pagecount+],[+maxigallery.currentpage+]`+] in galleryOuterTpl.
then do a snippet called "phx:stripnumbers"
<?php
$pageOptions = explode(",", $options);
$pageOptions[0]; // this has the content of [+maxigallery.pagecount+]
$pageOptions[1]; // this has the content of [+maxigallery.currentpage+]
$output; // this has the content of [+maxigallery.pagenumbers+], eg the html code of the page numbers
// insert logic here to rip out unnecessary page numbers from the $output variable based on current page number and page count.
return $output;
?>
Please let me know your price, and time to produce this, i would like to add that the code i’m buying will be given back to Maxigallery via the forum.
Greetings!