We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42393
    • 143 Posts
    OOP programmers don't need an explanation here. I'm wondering if there is such a thing as a base-class template which can be changed to affect all templates which derive/inherit from it. Duplicate a template and you now potentially have more than one place for the same change. It's easy to get a template to use a Chunk for content, but I don't see a way for templates to share their list of TVs.
    Thanks!

    This question has been answered by BobRay. See the first response.

      Loved ModX when I was using it a few years ago. Shifted to WordPress, sorry. Thanks, all.
      • 10208 ☆ A M B ☆
      • 1,780 Posts
      Duplicated templates should retain associated TV's. Other than that, I couldn't say how to automatically retain TV associations.

      Set your default template in system settings, site area. Child resources should inherit the parent's template by default regardless of the system setting.

      To find any settings available in the system settings page, use the search on the top right side and search loosely for your terms. i.e. searching "default" should bring up any setting for any system defaults, so you can then see what's possible.
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
      • discuss.answer
        • 3749
        • 24,544 Posts
        There's no subclass capability for Templates, but it's a nice idea. You can do a lot with LESS or SCSS, which allow inheritance of CSS objects and a lot of other handy options.
          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