We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19164
    • 1,215 Posts
    Nick, i saw that in last version there is no "parent" field in mm_default function. Here i wrote about it. May be if you like this you can add this field to this function in next version.

    And in docs for this function,
    mm_default($field, $value, $roles, $templates, $eval)

    only 5 parameters, but in source code there are 6 parameters.
    mm_default($field, $value='', $roles='', $templates='', $edit=false, $eval=false)


    I was add parameter $edit for this function in my own version. If its false, that mean that default value is set only when creating new document, if its true - default value set when creating and editing document (i.e value always rewriting with default value).
      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]
      • 21257 MODX Staff
      • 730 Posts
      Thanks for continuing to evolve this great tool. It’s cool. Too cool for school. My rating for this bad boy is 1 (bool).
      (Ok - not enough sleep + too much coffee and I start to freestyle.. keep the booing to a minimum please.)

      Just a little note for documentation for the next release - the document field show_in_menu does not seem to exist - I am using hideMenu instead.

      Cheers
        Mike Schell
        Lead Developer, MODX Cloud
        Email: [email protected]
        GitHub: https://github.com/netProphET/
        Twitter: @mkschell
        • 18367
        • 834 Posts
        INSTALL help

        Ok maybe I’m missing something, but I’ve installed the plugin as per the install instructions but I get nothing. No errors or anything.

        Unfortunately there’s nothing in the instructions that tells me what I’m supposed to see if the install is correct, so I have no idea if anything’s actually doing what it’s supposed to.

        What’s next?

        Thanks
          Content Creator and Copywriter
          • 6726
          • 7,075 Posts
          Did you define any rule like instructed ?

          If not, you won’t see anything happen...
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l'outil id
            • 18367
            • 834 Posts
            You mean I have to write code? sadlol) D

            Wouldn’t know how, although I’m willing for someone to tell me.

            Or maybe just an example that I can copy and paste just to see how it works.

            Thanks
              Content Creator and Copywriter
              • 29076
              • 615 Posts
              As I recently learnd for my self, everything is in the ManagerManager-plugin. Open the managerManager-plugin, and see the examples in the general-tab. Some of the explanations you can find in earlier post here, specially about the numbers $news = ’3’;, and $news_tpl = ’10’;.
                I think, thererfor I am! But what I am, and why...?
                • 21257 MODX Staff
                • 730 Posts
                Correction:
                Just a little note for documentation for the next release - the document field show_in_menu does not seem to exist - I am using hidemenu instead.
                  Mike Schell
                  Lead Developer, MODX Cloud
                  Email: [email protected]
                  GitHub: https://github.com/netProphET/
                  Twitter: @mkschell
                  • 21056
                  • 327 Posts
                  Quote from: netProphET at May 29, 2008, 12:13 PM

                  Correction:
                  Just a little note for documentation for the next release - the document field show_in_menu does not seem to exist - I am using hidemenu instead.


                  For which function does it not work (it works for some, e.g. mm_default) ?
                    Author: ManagerManager plugin - customise your ModX manager interface

                    Rckt - web development, Sheffield, UK
                    • 21056
                    • 327 Posts
                    Quote from: Metaller at May 28, 2008, 08:43 AM

                    Nick, i saw that in last version there is no "parent" field in mm_default function. Here i wrote about it. May be if you like this you can add this field to this function in next version.


                    So the usage scenario for that might be:

                    You have a user set up with a role of News Editor. You want to ensure that whenever he creates a new document, it is ALWAYS placed in the ’News’ folder?


                    Quote from: Metaller at May 28, 2008, 08:43 AM

                    I was add parameter $edit for this function in my own version. If its false, that mean that default value is set only when creating new document, if its true - default value set when creating and editing document (i.e value always rewriting with default value).

                    mm_default only runs when you are creating a new page - it is set not to do anything when you are editing a page, so you must have also edited the function? In what scenario would you want to change existing data in this way?
                      Author: ManagerManager plugin - customise your ModX manager interface

                      Rckt - web development, Sheffield, UK
                      • 19164
                      • 1,215 Posts
                      About 6th parameter, it seems that it was my mistake and i look in my own source code.

                      But about this idea, i mean that when user creating or editing document, it always placed in a "news" folder. Why this function needed to work when document edited? Because user can take any of existing document and change their template to "news". In that case we must place this doc to "news" folder too.
                        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]

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