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

    I would like to lock some of my pages from a template change under configuration-site-Default Template.
    My client clicks the radio button "Reset all Templates" and that then breaks pages like the rss and sitemap.xml etc that need to stay blank.
    Does anyone know how to do this?
    Thanks!
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Hmmm. I was going to suggest a plugin, but there’s no event for when system settings are saved. This is a rather obvious source of potential trouble! The only think that I can think of is perhaps ManagerManager can be of use here; I’ve never used it so I’m not sure how it would perform.

      Is blocking the client from the configuration (using a role) not an option? DocManager can be used to change templates for multiple documents.
        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