On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • I wanted to move the Content field to a new tab.

    It’s not possible by default. I modified /functions/fields.inc.php on line 236 to fix it.

    <?php 
    //I changed FROM this
    
    		// Go through each field that has been supplied
    		foreach ($fields as $field) {
    
    			switch ($field) {
    			
    				// We can't move these fields because they belong in a particular place
    				case 'keywords':
    				case 'metatags':
    				case 'which_editor':
    				case 'content':
    				case 'hidemenu':
    				case 'show_in_menu':
    				case 'menuindex':
    					// Do nothing
    				break;
    


    <?php
    //I changed to this
    
    		// Go through each field that has been supplied
    		foreach ($fields as $field) {
    
    			switch ($field) {
                    
                    //Try something new
                    case 'content':
                        $output .= "jQuery('#content_body').appendTo('#tab{$newtab}');";
                        $output .= "jQuery('#content_header').hide();";
                        //$output .= "var content_body = jQuery('#content_body'); console.log(content_body);";
                    break;
                    
    				// We can't move these fields because they belong in a particular place
    				case 'keywords':
    				case 'metatags':
    				case 'which_editor':
    				//case 'content':
    				case 'hidemenu':
    				case 'show_in_menu':
    				case 'menuindex':
    					// Do nothing
    				break;
    


    Thought Id share.
      Chuck the Trukk
      ProWebscape.com :: Nashville-WebDesign.com
      - - - - - - - -
      What are TV's? Here's some info below.
      http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
      http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
    • Quote from: ChuckTrukk at Sep 04, 2010, 04:01 AM

      I wanted to move the Content field to a new tab.

      It’s not possible by default. I modified /functions/fields.inc.php on line 236 to fix it.

      Time for Github!
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • Is it on there already?
          Chuck the Trukk
          ProWebscape.com :: Nashville-WebDesign.com
          - - - - - - - -
          What are TV's? Here's some info below.
          http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
          http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
        • I do believe so: http://github.com/modxcms/
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • well i meant managermanager =). but since MM is part of the evo release, yeah, i can issue a patch there.
              Chuck the Trukk
              ProWebscape.com :: Nashville-WebDesign.com
              - - - - - - - -
              What are TV's? Here's some info below.
              http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
              http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
            • i altered my fields.inc.php file to be able to move ’content’ to a new tab, however it appears below all the other tvs i move into that tab. do you know of a way i can make it appear before the tvs?

              here’s my managermanager chunk (or at least the relevant part):
              ######################
              ## MOVE PAGE CONTENT TO SEPARATE TAB
              ######################
              mm_createTab('Page Content','pageContentTab'); // MOVE CONTENT TO TAB
              
              mm_moveFieldsToTab('content', 'pageContentTab');
              
              mm_moveFieldsToTab('sidebox1_body','pageContentTab');
              mm_moveFieldsToTab('sidebox1_title','pageContentTab');
              mm_moveFieldsToTab('sidebox2_body','pageContentTab');
              mm_moveFieldsToTab('sidebox2_title','pageContentTab');
              mm_moveFieldsToTab('sidebox3_body','pageContentTab');
              mm_moveFieldsToTab('sidebox3_title','pageContentTab');


              i would like the "Page Content" tab to have:
              content
              sidebox1_title
              sidebox2_body
              etc...

              however it puts ’content’ at the bottom, which i could deal with, but some of my editors might blow a gasket if they had to scroll down for what "should" be at the top.
              • It is on GitHub - http://github.com/ncrossland/ManagerManager

                I’ve not used GitHub before so any suggestions on whether I’ve got it set up correctly would be welcome.
                  Author: ManagerManager plugin - customise your ModX manager interface

                  Rckt - web development, Sheffield, UK
                • I’ve added this to 0.3.9
                    Author: ManagerManager plugin - customise your ModX manager interface

                    Rckt - web development, Sheffield, UK
                  • ncrossland - managermanager is one of my favorite add-ons to modx. it does some terrific stuff, and i don’t implement a single site without using it to some level. thank you so much for creating it.