<![CDATA[ moveContent to Tab - MODX Community Forums]]> https://forums.modx.com/thread/?thread=45275 <![CDATA[Re: moveContent to Tab]]> https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261386 slush puppie Sep 30, 2010, 02:20 PM https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261386 <![CDATA[Re: moveContent to Tab]]> https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261385 ncrossland Sep 29, 2010, 09:45 AM https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261385 <![CDATA[Re: moveContent to Tab]]> https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261384 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.]]>
ncrossland Sep 29, 2010, 09:38 AM https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261384
<![CDATA[Re: moveContent to Tab]]> https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261383
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.]]>
slush puppie Sep 22, 2010, 04:03 PM https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261383
<![CDATA[Re: moveContent to Tab]]> https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261382 chucktrukk Sep 19, 2010, 08:17 PM https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261382 <![CDATA[Re: moveContent to Tab]]> https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261381 http://github.com/modxcms/]]> rethrash Sep 19, 2010, 04:08 PM https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261381 <![CDATA[Re: moveContent to Tab]]> https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261380 chucktrukk Sep 04, 2010, 12:21 AM https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261380 <![CDATA[Re: moveContent to Tab]]> https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261379 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!]]>
rethrash Sep 03, 2010, 11:33 PM https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261379
<![CDATA[moveContent to Tab]]> https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261378
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.]]>
chucktrukk Sep 03, 2010, 11:01 PM https://forums.modx.com/thread/45275/movecontent-to-tab#dis-post-261378