We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39267
    • 50 Posts
    I have a simple comics reader app with modx and I'm using getPage for it.

    here id my template :

    <ul class="pageNav">[[!+page.nav]]</ul>
    [[!getImageList? &value=`[[splitContentToJson]]`&tpl=`@CODE:[[+content]]` ]]
    [[!getPage? 
    &element=`getImageList` 
    &tvname=`lecteurbd`
    &tpl=`lecteurbdtpl`
    &limit=`1`
    ]]
    <ul class="pageNav">[[!+page.nav]]</ul>


    here is the chuck :

    <img src="[[+image]]" alt="page [[+page]]" />


    the problem is that I want to use the full pagination and have the image displayed have a link to the next page so the user can just click the image to go to the next one.

    So I can't use the
    pageNextTpl
    shortcode cause if I modify it, it changes the
    [[!+page.nav]]


    Is there a way to get the "next" link only to get this?

    <a href="[[thenextlink]]"><img src="[[+image]]" alt="page [[+page]]" /></a>


    Thank you,
    Matt.