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

    I have several template variables. For some reason when I make a change to them it is not reflected in all the subpages? Even when I use @INHERIT?

    Any ideas. I have cleared the chache etc?

      • 21257 MODX Staff
      • 730 Posts
      Are the subpages using the same template as the pages that have the TV value defined?
        Mike Schell
        Lead Developer, MODX Cloud
        Email: [email protected]
        GitHub: https://github.com/netProphET/
        Twitter: @mkschell
        • 7231
        • 4,205 Posts
        Do you have @INHERIT set as the default value? I found that it works better when set as the default value and then altered on;y on the pages that need it.

        From the docs, it seems that it behaves differently when used as the default value as opposed to as the input value:
        This binding can be used for Input Option Values or the Default Value like any other binding. However, it is really only useful when used for the Default Value.

        When this binding is used as a Default Value for a TV, if no content is specified for this TV in the current document, the binding will look at it’s parent document for content, and if none is found, it’s parent and so on until it reaches the top of the document tree. If it no content is found it will use the default content.

        http://modxcms.com/inherit-binding.html
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 21257 MODX Staff
          • 730 Posts
          Thanks for finding that dev_cw, that clears up an internal fuzziness I had on the subject. Cheers smiley
            Mike Schell
            Lead Developer, MODX Cloud
            Email: [email protected]
            GitHub: https://github.com/netProphET/
            Twitter: @mkschell