We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21056
    • 327 Posts
    If anyone is interested in testing, here’s an alpha (work heavily still in progress) version of 0.3

    There are still a couple of significant things still to change, but it gives you an idea of how the new features look. It seems to be fairly stable so far, but please test it and let me know your feedback.

      Author: ManagerManager plugin - customise your ModX manager interface

      Rckt - web development, Sheffield, UK
      • 21056
      • 327 Posts
      Here’s some pictures of the new widgets in action:

        Author: ManagerManager plugin - customise your ModX manager interface

        Rckt - web development, Sheffield, UK
        • 16892
        • 107 Posts
        No, this did not work.

        Here’s the code in my installation:

        $projEditor= '2';
        mm_hideFields('menutitle,link_attributes,description,show_in_menu,which_editor,is_folder,is_richtext,log,cacheable,clear_cache', $projEditor);
        mm_renameTab('settings', 'Publication settings', $projEditor);
        


        Quote from: ncrossland at Jun 10, 2008, 03:55 AM

        OK, found the problem - try replacing this bit of code (around line 375 of mm_functions.inc.php):

        default:
        						
        					// Lets check the fields exist, or is a TV, so we're not writing JS for elements that don't exist
        					if (isset($mm_fields[$field]) || substr($field, 0, 2) == 'tv') {
        						$output .= '$("input[@name='.$field.']").parents("tr").hide(); ';					
        					} else {
        						break;
        					}	
        				break;


        with the following:
        default:	
        					// Is it a TV?
        					if (substr($field, 0, 2) == 'tv') {
        						$output .= '$("#'.$field.'").parents("tr").hide(); ';
        					} else if (isset($mm_fields[$field]))  { // Check the fields exist,  so we're not writing JS for elements that don't exist
        						$output .= '$("'.$mm_fields[$field]['fieldtype'].'[@name='.$mm_fields[$field]['fieldname'].']").parents("tr").hide(); ';
        					} else {
        						break;
        					}				
        				break;

          • 7455
          • 2,204 Posts
          Is managermanager also usable to disable serten webgroups select boxes in webuser management? (create / edit webusers)
            follow me on twitter: @dimmy01
            • 21056
            • 327 Posts
            Quote from: Dimmy at Jun 12, 2008, 12:50 PM

            Is managermanager also usable to disable serten webgroups select boxes in webuser management? (create / edit webusers)
            No, at the moment it only works for documents, but could be extended in the future. Can you give an example of how you would like to use it within web user management?
              Author: ManagerManager plugin - customise your ModX manager interface

              Rckt - web development, Sheffield, UK
              • 21056
              • 327 Posts
              Quote from: legatissima at Jun 12, 2008, 12:31 PM

              No, this did not work.

              Here’s the code in my installation:

              Let’s see what javascript is being outputted.

              (assuming you’re using Firefox)

              1. On the document edit page, right click and choose "This Frame -> View Source"
              2. In the source code, search for "// ----------- Hide fields --------------"
              3. Show use what it says between here and the next // ---- divider
                Author: ManagerManager plugin - customise your ModX manager interface

                Rckt - web development, Sheffield, UK
                • 7455
                • 2,204 Posts
                Quote from: ncrossland at Jun 13, 2008, 03:02 AM

                Quote from: Dimmy at Jun 12, 2008, 12:50 PM

                Is managermanager also usable to disable serten webgroups select boxes in webuser management? (create / edit webusers)
                No, at the moment it only works for documents, but could be extended in the future. Can you give an example of how you would like to use it within web user management?


                I liked some webgroups hidden but it does not work
                I wanted them to be hidden so they could not be selected/ deselected (mailinglist groups) but the save.web.user.processor deletes the aways and creates them again. so hiding them will not prevent the deletion and recreation (nomaly this is not a problem but my maillinglist module use 2 extra custom columbs in that db table and those 2 are also deleted and NOT recreated ofcourse)

                Dimmy
                  follow me on twitter: @dimmy01
                  • 19164
                  • 1,215 Posts
                  @ncrossland

                  Function setVariableModified was removed in 0.9.6.1, so some functionality in widgets showimagetvs, colors not working in last MODx.

                  Great implemented, nice readme. Waiting for widget coder documentation.

                  @ProWebscape Let waiting for release of MM 0.3 and trying to make a widget based of us ideas.

                  I looked for my old code and saw that in my case data posted as array. MODx stored this array as string, items divided by ||. On frontend this string converts back to array and presents with data grid widget.
                    DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

                    Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

                    [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
                    • 21056
                    • 327 Posts
                    Quote from: Metaller at Jun 14, 2008, 08:22 AM

                    @ncrossland

                    Function setVariableModified was removed in 0.9.6.1, so some functionality in widgets showimagetvs, colors not working in last MODx.

                    Great implemented, nice readme. Waiting for widget coder documentation.

                    Hmm, I’m testing in 0.9.6.1, and it has setVariableModified -- without it, the values are not saved.

                    I’ll investigate further.

                    There should be a widget template called "!template" which is a starting point for customisation. To create a new widget, create a new folder in "widgets". There must be a corresponding php file name which is the file that will be included.

                    e.g. to create a plugin called "table" you would create [MM]/widgets/table/table.php

                    Any widgets beginning with ! are ignored

                    The !template widget has all the esessential bits in -- you can do whatever other PHP you need, and any code is outputted within a query Javascript block which is automatically run on document.ready

                    It is quite sparsely documented --
                      Author: ManagerManager plugin - customise your ModX manager interface

                      Rckt - web development, Sheffield, UK
                      • 21026
                      • 53 Posts
                      Hi, i’ve just discover this plugin... it’s really great.
                      Thanks. smiley

                      Quote at May 30, 2008, 06:42 AM

                      Quote from: Metaller at May 30, 2008, 06:29 AM

                      Or may be you mean that we can hide news template, and user cant to set news template to any document. But child documents of news folder will be inherit parent "news" template.
                      Is this what you want to do?

                      Yes!

                      I’m agree with Metaller, this feature ( inherit template from parent folder) will be very usefull.

                      PS: sorry for my english, i haven’t used it for long time.



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