Which version numbers of ModX / ManagerManager?
Can you do the following:
1) Edit a document which the hideSections and moveFieldsToTab should work for.
2) Right click in the document editing frame
3) View source
4) Locate where MM’s Javascript starts - denoted by <!-- ManagerManager Plugin :: Start -->
5) As each rule is executed, there is a JS comment. Are hideSections and moveFieldsToTab appearing in here?
Quote from: MediaGuy at Aug 20, 2008, 07:02 AMYes - if you use the Tag widget, it will allow you to input new tags, or choose from previously entered ones.
Could I use ManagerManager for a "tag" field where I want to be able to select predefined tags and be able to input some new as I need some?
Ok, will these new tags be added to the taglist? So that I don’t have to add them again when I make a new document?
// ----------- Move field to tab --------------
if ( $(’#tabpageTVs’).length > 0) {
}
The problem is here:
$pageTVs = ’homeText, tagline, sidebarFirst, sidebarSecond, newsitem1, newsitem2, newsitem3’;
If you want to move TVs, you need to prefix them with "tv" - e.g. you should have
$pageTVs = ’tvhomeText,tvtagline, tvsidebarFirst, tvsidebarSecond, tvnewsitem1, tvnewsitem2, tvnewsitem3’;
So, the first field specified in the list is moved, but no more. Also, the hideSections line is being ignored entirely.
break; } // end switch } // end foreach
Try removing the "break;" and seeing if it works now...
mm_renameField('pagetitle', 'Document Title');
mm_renameField('alias','Friendly URL');
mm_hideTabs('meta');
mm_createTab('SEO', 'seo', '', '', '<p>Input keywords and a description for this page.</p><p>If the page content changes frequently or is very important, change sitemap fields appropriately.</p><p> </p>', '100%');
mm_moveFieldsToTab('tvseokeywords,tvseodescription,tvsitemap_changefreq,tvsitemap_exclude,tvsitemap_priority', 'seo');
mm_createTab('Flash', 'swfobject', '', '', '<p>The Flash area is probably embedded in the page template. If not, you can use the <strong>{{headline}}</strong> chunk in the Editor.</p><p> </p>', '100%');
mm_moveFieldsToTab('tvswfID,tvswfversion,tvswffile,tvswfheight,tvswfwidth,,tvaltIMG,tvaltIMGHeight,tvaltIMGWidth', 'swfobject');
mm_hideFields('tvblogContent,longtitle,link_attributes,introtext,log,content_dispo,description');mm_widget_showimagetvs();
mm_createTab('Gallery', 'gallery', '', '', '<p>The gallery is likely in the template.</p><p>If it is not, use the <strong>{{gallery}}</strong> chunk in the Editor.</p><p> </p>', '100%');
mm_moveFieldsToTab('tvthumbRow,tvthumbSize,tvthumbShadow,tvmaxImageSize', 'gallery');
mm_renameTab('settings', 'Publishing Settings');
mm_renameTab('preview', 'Live Preview');
I think this is a bug (fixed in my development version) with showimagestv -- are you using this?
This discussion is closed to further replies. Keep calm and carry on.