We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32678
    • 290 Posts
    getResources processes chunks for use on a blog and blog category pages, with the first item using tplFirst. I'm trying to figure out how to prevent tplFirst from being used when pagination occurs. I tried an output modifier with idx, but idx reverts to one when pagination occurs. Same is true for tpl_nN.

    Any ideas?
      • 42562
      • 1,145 Posts
      Is getPage that does your pagination?
        TinymceWrapper: Complete back/frontend content solution.
        Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
        5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
        • 32678
        • 290 Posts
        Quote from: donshakespeare at Mar 03, 2015, 04:34 AM
        Is getPage that does your pagination?
        Yes, the respective calls within the template as follows:
        [[!getResourcesTag?
        &element=`getResources`
        &elementClass=`modSnippet`
        &parents=`[[*id]]`
        &where=`[{"template:=": "8"}]`
        &tplFirst=`blogPostFirstSummary`
        &tpl=`blogPostSummary`
        &includeTVs=`1`
        &tvPrefix=``
        &includeTVList=`introtext,imageFile,longtitle,content`
        &includeContent=`1`
        &pageVarKey=`page`
        &limit=`5`
        &sortby=`menuindex`
        ]]
        [[!+page.nav:notempty=`
        <div>
        <h3>Previous Posts</h3>
        <ul>	
        [[!+page.nav]]  
        </ul>
        </div>
        `]]