We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27541
    • 29 Posts
    Quote from: ncrossland at Aug 20, 2008, 03:04 AM

    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?

    ModX v.0.9.6.1p2
    MM v.0.3

    I see the following, corresponding to some of the rules I have:

    // ----------- Create tab --------------
    $(’div#’+mm_lastTab).after(’<div class="tab-page" id="tabpageTVs"><h2 class="tab">Page Content</h2><div class="tabIntro" id="tab-intro-pageTVs"><p>This page uses a template that defines edit-able areas. Edit these here.</p></div><table width="450" border="0" cellspacing="0" cellpadding="0" id="table-pageTVs"></table></div>’);
    mm_lastTab = ’tabpageTVs’;
    tpSettings.addTabPage( document.getElementById( "tabpageTVs" ) );
    // ----------- Create tab --------------
    $(’div#’+mm_lastTab).after(’<div class="tab-page" id="tabsbTVs"><h2 class="tab">Sidebar Content</h2><div class="tabIntro" id="tab-intro-sbTVs"><p>If you want custom sidebar text for this page only, edit sidebar content here. Note that the change will not be made on all pages -- for that, you must make edits in the Chunks section.</p></div><table width="450" border="0" cellspacing="0" cellpadding="0" id="table-sbTVs"></table></div>’);
    mm_lastTab = ’tabsbTVs’;
    tpSettings.addTabPage( document.getElementById( "tabsbTVs" ) );
    // ----------- Move field to tab --------------
    if ( $(’#tabpageTVs’).length > 0) {
    }
    // ----------- Move field to tab --------------
    if ( $(’#tabsbTVs’).length > 0) {
    }


    thanks,
    st
      • 25483
      • 741 Posts
      Quote from: ncrossland at Aug 20, 2008, 07:05 AM

      Quote from: MediaGuy at Aug 20, 2008, 07:02 AM

      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?
      Yes - if you use the Tag widget, it will allow you to input new tags, or choose from previously entered ones.

      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?
        with regards,

        Ronald Lokers
        'Front-end developer' @ h2o Media

        • 21056
        • 327 Posts
        Quote from: MediaGuy at Aug 20, 2008, 09:35 AM

        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?

        Yes, it looks at all previous tags that have been entered in that TV* in other documents.

        *or you can tell it to look at any other TV
          Author: ManagerManager plugin - customise your ModX manager interface

          Rckt - web development, Sheffield, UK
          • 21056
          • 327 Posts
          Quote from: skt at Aug 20, 2008, 09:30 AM

          // ----------- 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’;
            Author: ManagerManager plugin - customise your ModX manager interface

            Rckt - web development, Sheffield, UK
            • 27541
            • 29 Posts
            Quote from: ncrossland at Aug 20, 2008, 10:05 AM

            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’;

            thank you -- i’ve made that change; the result now reads:

            // ----------- Create tab --------------
            $(’div#’+mm_lastTab).after(’<div class="tab-page" id="tabpageTVs"><h2 class="tab">Page Content</h2><div class="tabIntro" id="tab-intro-pageTVs"><p>This page uses a template that defines edit-able areas. Edit these here.</p></div><table width="450" border="0" cellspacing="0" cellpadding="0" id="table-pageTVs"></table></div>’);
            mm_lastTab = ’tabpageTVs’;
            tpSettings.addTabPage( document.getElementById( "tabpageTVs" ) );
            // ----------- Create tab --------------
            $(’div#’+mm_lastTab).after(’<div class="tab-page" id="tabsbTVs"><h2 class="tab">Sidebar Content</h2><div class="tabIntro" id="tab-intro-sbTVs"><p>If you want custom sidebar text for this page only, edit sidebar content here. Note that the change will not be made on all pages -- for that, you must make edits in the Chunks section.</p></div><table width="450" border="0" cellspacing="0" cellpadding="0" id="table-sbTVs"></table></div>’);
            mm_lastTab = ’tabsbTVs’;
            tpSettings.addTabPage( document.getElementById( "tabsbTVs" ) );
            // ----------- Move field to tab --------------
            if ( $(’#tabpageTVs’).length > 0) {
            var tv = $("[@name^=tvhomeText]:first").parents("tr");
            $(tv).next("tr").remove();
            var newTV = $(tv).appendTo("#tabpageTVs>table:first");
            $(newTV).after(’<tr style="height: 10px"><td colspan="2"><div class="split"></div></td></tr>’); $("[@name^=tvhomeText]:first").parents("td").removeAttr( "style" ); }
            // ----------- Move field to tab --------------
            if ( $(’#tabsbTVs’).length > 0) {
            var tv = $("[@name^=tvsbaCustomHead]:first").parents("tr");
            $(tv).next("tr").remove();
            var newTV = $(tv).appendTo("#tabsbTVs>table:first");
            $(newTV).after(’<tr style="height: 10px"><td colspan="2"><div class="split"></div></td></tr>’); $("[@name^=tvsbaCustomHead]:first").parents("td").removeAttr( "style" ); }

            So, the first field specified in the list is moved, but no more. Also, the hideSections line is being ignored entirely.
              • 21056
              • 327 Posts
              Quote from: skt at Aug 20, 2008, 10:26 AM

              So, the first field specified in the list is moved, but no more. Also, the hideSections line is being ignored entirely.

              let’s take them one at a time...

              Near the end of /assets/plugins/managermanager/functions/fields.inc.php, you’ll find

              			break;
              			
              			} // end switch	
              		} // end foreach


              Try removing the "break;" and seeing if it works now...
                Author: ManagerManager plugin - customise your ModX manager interface

                Rckt - web development, Sheffield, UK
                • 27541
                • 29 Posts
                Quote from: ncrossland at Aug 20, 2008, 10:38 AM

                Try removing the "break;" and seeing if it works now...

                i’ve done so -- no change that i can see. here’s the source now:

                // ----------- Create tab --------------
                $(’div#’+mm_lastTab).after(’<div class="tab-page" id="tabpageTVs"><h2 class="tab">Page Content</h2><div class="tabIntro" id="tab-intro-pageTVs"><p>This page uses a template that defines edit-able areas. Edit these here.</p></div><table width="450" border="0" cellspacing="0" cellpadding="0" id="table-pageTVs"></table></div>’);
                mm_lastTab = ’tabpageTVs’;
                tpSettings.addTabPage( document.getElementById( "tabpageTVs" ) );
                // ----------- Create tab --------------
                $(’div#’+mm_lastTab).after(’<div class="tab-page" id="tabsbTVs"><h2 class="tab">Sidebar Content</h2><div class="tabIntro" id="tab-intro-sbTVs"><p>If you want custom sidebar text for this page only, edit sidebar content here. Note that the change will not be made on all pages -- for that, you must make edits in the Chunks section.</p></div><table width="450" border="0" cellspacing="0" cellpadding="0" id="table-sbTVs"></table></div>’);
                mm_lastTab = ’tabsbTVs’;
                tpSettings.addTabPage( document.getElementById( "tabsbTVs" ) );
                // ----------- Move field to tab --------------
                if ( $(’#tabpageTVs’).length > 0) {
                var tv = $("[@name^=tvhomeText]:first").parents("tr");
                $(tv).next("tr").remove();
                var newTV = $(tv).appendTo("#tabpageTVs>table:first");
                $(newTV).after(’<tr style="height: 10px"><td colspan="2"><div class="split"></div></td></tr>’); $("[@name^=tvhomeText]:first").parents("td").removeAttr( "style" ); }
                // ----------- Move field to tab --------------
                if ( $(’#tabsbTVs’).length > 0) {
                var tv = $("[@name^=tvsbaCustomHead]:first").parents("tr");
                $(tv).next("tr").remove();
                var newTV = $(tv).appendTo("#tabsbTVs>table:first");
                $(newTV).after(’<tr style="height: 10px"><td colspan="2"><div class="split"></div></td></tr>’); $("[@name^=tvsbaCustomHead]:first").parents("td").removeAttr( "style" ); }

                thank you,
                st
                  • 25803 ☆ A M B ☆
                  • 721 Posts
                  Hello,

                  Using ManagerManager 0.3 and MODx 0.9.6.2-rc2

                  Plugin works wonderfully for existing documents but when I create a new document I just get a blank screen. If I comment out the code in the mm_rules chunk, I can then create a document, but of course, don’t have any of the benefits of ManagerManager.

                  The call is as follows:

                  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');
                  


                  Firebug is reporting a mootools error (mootools.js (line 247).
                    • 21056
                    • 327 Posts
                    I think this is a bug (fixed in my development version) with showimagestv -- are you using this?
                      Author: ManagerManager plugin - customise your ModX manager interface

                      Rckt - web development, Sheffield, UK
                      • 25803 ☆ A M B ☆
                      • 721 Posts
                      Quote from: ncrossland at Aug 27, 2008, 08:11 AM

                      I think this is a bug (fixed in my development version) with showimagestv -- are you using this?

                      Hello and thank you for this great plugin. In truth I’d never heard of it, but I had read through the thread and I did disable the plugin called "Image TV Preview". Is there another step I need to do?

                      This discussion is closed to further replies. Keep calm and carry on.