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

    I've got a getResourcesTag call on a page that I need to paginate, here it is without the pagination:

    [[!getResourcesTag?
    &includeTVs=`1`
    &tagKey=`client_type`
    &parents=`[[*id]]`
    &processTVs=`1`
    &limit=`0`
    &tpl=`child_twelve`
    &hideContainers=`1`
    &where=`{"template:!=":7, "AND:template:!=":8}`]]
    


    When I use getPage I use the following call but I end up with a completley blacnk page and no errors in the ModX log. I'm stumped, and it's actually quite crucial.

    [[!getPage?
    &element=`getResourcesTag`
    &includeTVs=`1`
    &tagKey=`client_type`
    &parents=`[[*id]]`
    &processTVs=`1`
    &tpl=`child_twelve`
    &hideContainers=`1`
    &where=`{"template:!=":7, "AND:template:!=":8}`]]


    Any ideas?

    This question has been answered by sottwell. See the first response.

    • Check the server's PHP error log. A blank page usually means a fatal PHP error that won't let MODX run at all.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
      • discuss.answer
        Looking at the documentation, it appears that getResourcesTag by default is already wrapping getPage.

        grSnippet - The snippet to wrap with getResourcesTag. Recommended to leave at getPage.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 37832
          • 7 Posts
          Thank you very much sottwell! smiley
            • 51204
            • 2 Posts
            markrlyon,

            please share with us the working code!
            I really need this to work for our website as well.