We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44159
    • 3 Posts
    hi I'm new of modx I'm trying to paginate some picture from an migx template variable using getPage and getImageList. every things works except for the navigation: when I clink on some navigation button the new page appear correctly but without any navigation button at the bottom even if the page are more then two and no care on which page I go the page appear correctly but without navigation button.. I post here the sniplet call
    [[getPage?
    		  &element=`getImageList`
    		  &tvname=`pictures` 
    		  &tpl=`galleryList2`
    		  &sort=`[{"sortby":"MIGX_id","sortdir":"DESC","sortmode":"numeric"}]`
    		  &limit=`9`
    		  &pageVarKey=`page`
    		  &pageNavOuterTpl=`[[$pageNavOuterTpl]]`
    			&pageNavTpl=`[[$pageNavTpl]]`
    			&pageActiveTpl=`[[$pageActiveTpl]]`
    			&pageFirstTpl=`[[$pageFirstTpl]]`
    			&pageLastTpl=`[[$pageLastTpl]]`
    			&pagePrevTpl=`[[$pagePrevTpl]]`
    			&pageNextTpl=`[[$pageNextTpl]]`
    
    		  ]]

    I use the same navigation templates in an other page on the same website using get page with get resource it works but here no and I have no idea how to fix it

    any idea? [ed. note: dama_sf last edited this post 10 years, 10 months ago.]
      • 6629
      • 60 Posts
      Try using getPage uncached ( [[!getPage ... ]] )

      See http://rtfm.modx.com/display/addon/getpage for more info.
        • 44159
        • 3 Posts
        thanks so much now it work!!!!