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

    I’ve got a website where the manager users (theres a few of them) can’t remember to change the template on any of their docs so I’m looking for a way to automatically set the template for new docs that are in different sections of the website.

    The basic structure is

    • Top level
    • Top level
      [list][li]Middle level
      [list][li]Bottom level
    • Bottom level
    [/li][/list][/li][/list]

    All the top and the bottom levels need different templates, the middle level isn’t displaying so it can use either template. Is there any way to automagically assign the right template to the bottom level while leaving the top level the "default template" in the configuration.

    I hope that makes sense???

    Thanks for any assistance
    Free
    • What version of MODx? If it’s Evo (1.0.x) it will happen automatically; there is an Inherit Template plugin installed by default that causes any new resources to inherit their parent’s template.
        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
        • 8643
        • 271 Posts
        Try this plugin -> Template Rules Plugin
          • 4971
          • 964 Posts
          dont know how you are managing your new document creation.
          I make so that the users click an icon and a new doc is created
          by copying an existing document with everything configured already...

          so when a user logs in the manager and wants to add, lets say, a new
          article, they click an icon in the home page and it copies a doc "template"
          with all the TVs, proper page template, etc. and they just filled in
          the TVs like it was a form.

          They save the "form" and they are finished... all this is achievable via
          ManagerManager and modifying the Manager Home page.
            Website: www.mercologia.com
            MODX Revo Tutorials:  www.modxperience.com

            MODX Professional Partner
            • 4455
            • 76 Posts
            Thanks everyone,

            Sottwell, changing the template of the parent did the trick cheers smiley

            Charliez, while your solution sounds awesome, I’m just a front end guy that’s slowly figuring my way around MODx. That all sounds pretty complicated!

            Cheers
            Free