We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25663 MODX Staff
    • 12,272 Posts
    Should the newslisting snippet ignore docs marked deleted, but with the trash not emptied yet? I think it should, but it doesn’t currently.
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 33337
      • 3,975 Posts
      Zaigham (aka zi) Reply #2, 21 years ago
      I think NewsListing even display un-published documents too..
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 22303 MODX Staff
        • 10,725 Posts
        Actually, it’s using the API functions getActiveChildren and getAllChildren, which are not checking the deleted column in the table. There is an option to include only published or all documents.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Question: I see in the credits there is mention of

          * 25-Nov-2005 added ability to call useful parts of the document object in a template via [+documentobject+] (Mark)

          I don’t see how to make use of this. I need to use the "description" field as a placeholder for a template. I would prefer not to have to hack the snippet to enable this, and it seems like the above should do the trick. huh
            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