We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8522
    • 145 Posts
    hi

    If you like SMF type of pagination with your Jot
    1 ... 3 4 [5] 6 7 ... 40

    then save chunk as "my.jot.navigation":

    <div class="jot-nav">
    [+jot.page.current:gt=`1`:then=`
    	<a href="[+jot.link.navigation:esc+][+jot.querykey.navigation+]=[+jot.page.current:math=`?-1`+]">Previous</a>
    `+]
    [+jot.page.current:math=`?-3`:gt=`0`:then=`
    	<a href="[+jot.link.navigation:esc+][+jot.querykey.navigation+]=1">1</a>
    `+]
    [+jot.page.current:math=`?-4`:gt=`0`:then=`
    	…
    `+]
    [+jot.page.current:math=`?-2`:gt=`0`:then=`
    	<a href="[+jot.link.navigation:esc+][+jot.querykey.navigation+]=[+jot.page.current:math=`?-2`+]">[+jot.page.current:math=`?-2`+]</a>
    `+]
    [+jot.page.current:math=`?-1`:gt=`0`:then=`
    	<a href="[+jot.link.navigation:esc+][+jot.querykey.navigation+]=[+jot.page.current:math=`?-1`+]">[+jot.page.current:math=`?-1`+]</a>
    `+]
    <strong>[+jot.page.current+]</strong>
    [+jot.page.current:lt=`[+jot.page.total+]`:then=`
    	<a href="[+jot.link.navigation:esc+][+jot.querykey.navigation+]=[+jot.page.current:math=`?+1`+]">[+jot.page.current:math=`?+1`+]</a>
    `+]
    [+jot.page.current:math=`?+1`:lt=`[+jot.page.total+]`:then=`
    	<a href="[+jot.link.navigation:esc+][+jot.querykey.navigation+]=[+jot.page.current:math=`?+2`+]">[+jot.page.current:math=`?+2`+]</a>
    `+]
    [+jot.page.current:math=`?+3`:lt=`[+jot.page.total+]`:then=`
    	…
    `+]
    [+jot.page.current:math=`?+2`:lt=`[+jot.page.total+]`:then=`
    	<a href="[+jot.link.navigation:esc+][+jot.querykey.navigation+]=[+jot.page.total+]">[+jot.page.total+]</a>
    `+]
    [+jot.page.current:lt=`[+jot.page.total+]`:then=`
    	<a href="[+jot.link.navigation:esc+][+jot.querykey.navigation+]=[+jot.page.current:math=`?+1`+]">Next</a>
    `+]
    </div>


    Example usage:
    [[jot? &pagination=`4` &tplNav=`my.jot.navigation`]]

    Let me know if it works for you.

    eni