We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • It looks like the spellchecker for TinyMCE is missing.
      Patrick | Server Wrangler
      About Me: Website | TweetsMODX Hosting
      • 9995
      • 1,613 Posts
      TV with Custom input can't be hidden.

      When I try: mm_demo_rules chunk

      if($content['parent'] != 1){
      mm_hideFields('longtitle');
      mm_hideFields('mycustomtv');
      }


      The longtitle is hidden, the custom chunk isn't.
      (@INCLUDE/assets/tvs/multitv/multitv.customtv.php)

        Evolution user, I like the back-end speed and simplicity smiley
      • Thanks for your report.
        Could you try this patch? (into assets/plugins/managermanager/)
          • 9995
          • 1,613 Posts
          I get some errors, see attachment.

          Maybe because I use https://github.com/Jako/multiTV as custom tv?

            Evolution user, I like the back-end speed and simplicity smiley
          • The selector generated in line 133 in file 'function/fields.inc.php' is too specific. multiTV uses textarea tag as field input and ManagerManager assumes that customTVs are input tags.

            change it to:
            $output .= '$j(":input[name='.$mm_fields[$field]['fieldname'].']").parents("tr").hide().next("tr").find("td[colspan=2]").parent("tr").hide(); ';


            Hope that works (not tested - but mm_moveFieldsToTab was changed the same in 1.0.9/10).
              • 9995
              • 1,613 Posts
              WORKS! thx

              do I need to add it to the bugtracker?


                Evolution user, I like the back-end speed and simplicity smiley
              • Done: http://tracker.modx.com/issues/9865

                Caution, maybe the selector in the current patch is too loose.