We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5119
    • 90 Posts
    I’m wondering about the best way to implement this. I have a single Ditto news item on the front page of a site that requires a user to login to see all other news. The news item is a teaser for non-subscribed visitors and it will be updated 4-6 times per week.

    To display the news item, I have to make the page public within the MODx file system. This isn’t a problem, but is there a way I can automate the process of turning a page private once a new item appears? Alternatively, a once-a-week clean-up or something? Although the page will only display the latest item, I’d prefer to resecure the other pages.

    Any suggestions?
      • 5119
      • 90 Posts
      Anyone? Nobody? Starting to wonder if I smell...
        • 3749
        • 24,544 Posts
        You can automate publication and unpublication in the Manager, but I don’t know of any way of automating group membership for documents. You can assign and unassign multiple documents to groups easily with the DocManager module.

        You could also write a custom snippet that would change the group membership of docs in bulk but it would involve modifying the DB directly.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting