We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10489
    • 93 Posts
    Hi All,

    I have a Placeholder snippet with the following code;
    <?php
    return $modx->getPlaceholder($placeholder);
    ?>


    Then i have a resource called retail(wich has child resources) with the following ditto call and placeholder call:
    [!Ditto? &tpl=`list` &parents=`80` &paginate=`1` &paginateAlwaysShowLinks=`0` &summarize=`4` &orderBy=`menuindex ASC`!]
    
    
    
    
    Showing [!placeholder? &placeholder=`start`!] - [!placeholder? &placeholder=`stop`!] of [!placeholder? &placeholder=`total`!]  Products | Page [!placeholder? &placeholder=`currentPage`!]  of  [!placeholder? &placeholder=`totalPages`!]  
     
    [!placeholder? &placeholder=`previous`!] [!placeholder? &placeholder=`pages`!] [!placeholder? &placeholder=`next`!]


    The previous and next button works using the document ID. Can i set it up to use the menu index rather?
    The reason is, the third product in the lists has the highest document id, so the next link stops at that point however there are at least another 80 products int he list

    Thanks