We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Quote from: sawick at Mar 05, 2008, 10:47 AM

    Hi!
    Is it possible to hide some TV depends on page that i choose?
    example: I have 2 pages : firstPage and secondPage, I want to hide some TV only on firstPage.
    You can create a manager group/document group, put your Admin managers in the manager group, then assign the TVs in question to the group. Now only the Admin manager can see the TVs.
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 21056
      • 327 Posts
      I’ve been considering better ways of defining the ManagerManager rules. In order of work required, they are:

      1. Keep them defined in the plugin code
      2. Define them in code in a separate chunk
      3. Define them in code in an external file
      4. Create a user interface to visually create the rules (from dropdowns, etc)

      What would people’s preferred choice be?
        Author: ManagerManager plugin - customise your ModX manager interface

        Rckt - web development, Sheffield, UK
        • 8960
        • 150 Posts
        Wow! This plugin is AWESOME! Now, here’s my 2 cents...

        When following the documentation with the newest v0.2.6 version installed, I noticed that the examples didn’t work unless I removed the spaces in the parameters.

        So, examples like this in the documentation...
        mm_hideTabs('meta, preview'); // Hide the meta and preview tabs for all users

        ... needed to be written as
        mm_hideTabs('meta,preview'); // Hide the meta and preview tabs for all users


        The other item is a request: Is there a way to change the sort order of the tabs? When I create a new tab, it gets stuck at the end, rather than second or first where I would really like it to be.

        Sorry if either of these items has been covered in this thread already. I admit I didn’t read all the posts.
          • 21056
          • 327 Posts
          Quote from: er16004 at Apr 01, 2008, 09:40 AM

          Wow! This plugin is AWESOME! Now, here’s my 2 cents...

          When following the documentation with the newest v0.2.6 version installed, I noticed that the examples didn’t work unless I removed the spaces in the parameters. So
          mm_hideTabs('meta, preview'); // Hide the meta and preview tabs for all users
          needed to be written as
          mm_hideTabs('meta,preview'); // Hide the meta and preview tabs for all users
          .

          The other item is a request: Is there a way to change the sort order of the tabs? When I create a new tab, it gets stuck at the end, rather than second or first where I would really like it to be.

          Sorry if either of these items has been covered in this thread already. I admit I didn’t read all the posts.

          Thanks - I’ll see to correct the documentation (or even better, fix the code so it isn’t so sensitive to spaces).

          At the moment, you can only stick it at the end, but I’ll add it to the wishlist.
            Author: ManagerManager plugin - customise your ModX manager interface

            Rckt - web development, Sheffield, UK
            • 5340
            • 1,624 Posts
            Last Version
            Mamp with PHP Version 5.2.3

            ManagerManager - OnPluginFormRender
            An error occurred while loading. Please see the event log for more information.
            
            
            Warning: include(xxxxx/assets/plugins/managermanager/mm_functions.inc.php) [function.include]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/xxxxx/manager/includes/document.parser.class.inc.php(745) : eval()'d code on line 84
            
            Warning: include() [function.include]: Failed opening 'xxxxx/assets/plugins/managermanager/mm_functions.inc.php' for inclusion (include_path='/Applications/MAMP/htdocs/xxxxx/manager/includes/') in /Applications/MAMP/htdocs/xxxxx/manager/includes/document.parser.class.inc.php(745) : eval()'d code on line 84
            
            Warning: include(xxxxx/assets/plugins/managermanager/mm.inc.php) [function.include]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/xxxxx/manager/includes/document.parser.class.inc.php(745) : eval()'d code on line 94
            
            Warning: include() [function.include]: Failed opening 'xxxxx/assets/plugins/managermanag



            Any Ideas?
              • 7455
              • 2,204 Posts
              looks like

              1 the files are not there
              2 the rights for tht directory and files are not set right.

              Dimmy
                follow me on twitter: @dimmy01
                • 5340
                • 1,624 Posts
                Yep, It was the Resource path. It had wrong values
                Thx
                  • 26422
                  • 107 Posts
                  Quote from: ncrossland at Apr 01, 2008, 08:39 AM

                  I’ve been considering better ways of defining the ManagerManager rules. In order of work required, they are:

                  1. Keep them defined in the plugin code
                  2. Define them in code in a separate chunk
                  3. Define them in code in an external file
                  4. Create a user interface to visually create the rules (from dropdowns, etc)

                  What would people’s preferred choice be?

                  First of all I LOVE this plugin and as far as I’m concerned something like this should be a part of ModX core. I’ve done ModX training sessions now for a number of months and people who are not computer savvy get confused over a number things. As a developer, having the ability to customize the way the manager works and looks is vital to making ModX sites a success. Excellent job!!

                  It would be awesome if there was some way of having a user interface for this. It’s been a bit of a bear getting the code to do exactly as it should. Also I haven’t been able to move rich text TVs to other tabs yet. Is there a solution for this?

                  Anyway, thanks for a great contribute to making ModX even better.
                    Crawford Paul

                    Bridgecourt Web Design - Proudly using ModX CMS
                    Serving Welland, Niagara, Ontario, Canada and the world!
                    http://www.bridgecourt.com
                    • 18605
                    • 7 Posts
                    Hello ManagerManager-Community,

                    I have a problem with moved templatevariables (TV) in a sepperate tab.

                    But first my configuration:
                    // ManagerManager plugin v0.2.6
                    // See readme.htm for licensing and installation instructions
                    // The following System Events should be checked:
                    // [X] OnDocFormPrerender
                    // [X] OnDocFormRender
                    // [X] OnPluginFormRender
                    
                    
                    if (!function_exists("make_changes")) {
                    	function make_changes() { 
                    	
                    	
                    	// ------------------------ INSERT YOUR RULES HERE --------------------
                            mm_createTab('<b style=\"color:#a77\">Aufgaben + interne Infos</b>','paneAI');   // in english -> tasks and notice
                    	mm_moveFieldsToTab('tvBackend_OffeneAufgaben', 'paneAI');    // in english -> open task
                    	mm_moveFieldsToTab('tvBackend_internesBemerkungsfeld', 'paneAI');  //in english -> internal notice
                        
                           mm_inherit('template');
                    
                            // Anpssung nur für Content-Admins
                             $contentAdminGrp=2;
                              mm_hideFields('alias,link_attributes,contentType,clear_cache',  $contentAdminGrp);
                    	// ------------------------ END OF RULES --------------------
                    
                    	}  // Don't remove this
                    }  // Don't remove this
                    .....
                    


                    In Mozilla-Firefox (2.0.0.14) it work super good, but an manager-user with IE7 under Vista, has problems with my generated tab. When he clicked on my tab named "Aufgaben + interne Infos", all TVs are showing. Then he move his mouse to a TemplateVariabe, and all TVs are hidden. I suspect that an event is hidding the TVs, when he leave the tab headline after hover.

                    Is that a known problem from IE??? What must I do to fixed this?
                      Iam sorry for my denglish... Best greetings from Germany .. And until later!
                      ModX-CMS is the best CMS-System was available for PHP! Developer keep up the good work!
                      • 18605
                      • 7 Posts
                      Has nobody an idea?
                        Iam sorry for my denglish... Best greetings from Germany .. And until later!
                        ModX-CMS is the best CMS-System was available for PHP! Developer keep up the good work!

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