We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9941
    • 65 Posts
    So I was confused when I set a TV default value to @INHERIT and used a dropdown menu as the widget and upon setting a document to a value, the child documents (whom are inheriting the value) do not show the inherited value as selected. Is this true for all input widgets? That they don’t show the parent value in them when editing the document?

    Seems to me that this is a missing function that should be implemented.... also when I set the default value ie: @INHERIT ’myvalue’ that value was also not reflected in the input control.

    Any thoughts on this?


      • 28042 ☆ A M B ☆
      • 24,524 Posts
      That is correct. The child documents don’t show the parent value when editing them. After all, the child document does not have a value, it inherits the value of its parent. If it showed a value, then that would be its value, not its parent’s value.
        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
        • 33337
        • 3,975 Posts
        Zaigham (aka zi) Reply #3, 19 years ago
        As sottwell said, @INHERIT looks if the TV has not a value then it shows its parent’s, otherwise its own value. It doesn’t "auto-fill" the children doc’s TVs.
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link
          • 9941
          • 65 Posts
          From a laymens’ POV this seems a little confusing. Seems like it should show the inherited value somewhere. Especially for instance when the parent document is not accessible to an editor... so they won’t know what the inherited value is.

          I do see the point of not auto-filling as that would be incorrect, the value ’is’ inherited, but ’can’ be permanently changed to the current inherited value, where later if the parent value changes the child value would thereafter remain the new selected value.