We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15175
    • 116 Posts
    I can’t seem to hide TV fields - I have successfully hidden the Document Content, so I know everything else is working as it should.

    I would like to hide the TV "inline_links_color" on all documents using the template ID 10.

    Here is my mm_rules chunk:

    mm_hideFields('content','1', '10');
    mm_hideFields('tvinline_links_color','1','10');


    Any suggestions would be gratefully received.

    EDIT: I should add that this TV is using ’@INHERIT’ - I don’t know if this would create any issues.

    • Another way to hide TVs is to create a document group and assign the TVs to that document group. Create a corresponding user group connected to the document group and assign your admin user to that user group. Now only the admin user will see the TVs.
        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
        • 15175
        • 116 Posts
        Thanks for the useful advice - I’m still relatively new to MODx and haven’t touched document and user groups yet.

        In this case though, the project is live and and the client logs in as the admin user (probably not the best way of doing things in retrospect) - I would also like to get to the bottom of why this isn’t working should I need to use ManagerManager in the future.
          • 26931
          • 2,314 Posts
          hi j_p,

          I can’t seem to hide TV fields - I have successfully hidden the Document Content, so I know everything else is working as it should.

          it seems that MM doesn’t like underscores and hyphens in TV names, as well as certain Input Types...e.g., i just couldn’t hide a TV with input type "Radio Options", i had to change to "DropDown List Menu"
          • You can hide TVs by assigning them to a document group, and only assign your admin user to the corresponding user group. Anybody not a member of the user group won’t see the TVs.
              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
              • 25483
              • 741 Posts
              I have the same problem, but only with checkbox type TV’s. They just don’t hide while others do.

              I’m not sure if it is a version specific problem, I got the problem on modx 1.0.0
                with regards,

                Ronald Lokers
                'Front-end developer' @ h2o Media