We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1764
    • 680 Posts
    I’m working on a new binding. It’s pretty much working fine I just need to deal with unpublished documents more gracefully.

    The idea is to set @INHERIT as a TVs default value, then if no value exists for the TV it will climb up the page heirarchy until it finds a page that has real content for that TV. The end result is that you can set a value for a TV in one document and the value cascades down to all of it’s children. Very handy when you’re working with large sites. An option value can be given in case no value is found in any parent (ie @INHERIT not_found_value).

    I should be ready to commit this to SVN soon, I just thought I’d get your guys feedback before I did.
      • 25663 MODX Staff
      • 12,272 Posts
      Love the idea smiley
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 1764
        • 680 Posts
        Just commited the code, rev567.

        This should get a lot of testing before the release if possible. When it’s released the documentation should be updated too.
          • 32963
          • 1,732 Posts
          Very nice work Adam.
            xWisdom
            www.xwisdomhtml.com
            The fear of the Lord is the beginning of wisdom:
            MODx Co-Founder - Create and do more with less.