We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32006
    • 12 Posts
    Hallo allemaal,

    na wat rondvraag in het engelse forum, plaats ik ook mijn vraag hier even, ik heb een maxigallery met daarin heel veel foto’s, zoveel dat ik 200 subpagina’s krijg, geen probleem allemaal, alleen is de pagina navigatie ontzettend lelijk, omdat maxigallery voor elke pagina een aparte link geeft dus :

    vorige 1|2|3|4|etc|tot|en|met|222|volgende

    Ik wil graag vorige 1|2|3|4|5|6|7|8|9|...|222|volgende

    Is er iemand die me daarbij kan helpen, er is al een opzetje gemaakt door iemand in het maxigallery forum namelijk:

    Quote from: doze at Feb 28, 2010, 03:10 PM



    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;
    ?>
    


    Ik hoop dat er iemand is die mij wil helpen!

    Eventueel wil ik er best iets voor betalen!

    gegroet allemaal!