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
    No one has shown an interest for my modification. Some modification i have posted on the forum, some not. If you are want i may upload my version here, but i can’t to explain all of its functions (sorry for my english).
      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]
      • 7231
      • 4,205 Posts
      Quote from: Metaller at Dec 07, 2007, 03:28 PM

      No one has shown an interest for my modification. Some modification i have posted on the forum, some not. If you are want i may upload my version here, but i can’t to explain all of its functions (sorry for my english).
      I am interested. Please upload your version or send it to ncrossland and see if he can update the original post. There are so many mods that it would be easier to just install the new files. I have not installed them yet, but will be closing up a project and will use MM to tidy things up and will likely use the hideSection as well as some others.

      Question: is there a parameter to set the template for a new document. I have a situation where the parent has one template but the children use another and it is a bit overwhelming for my client to remember to change the template when creating new documents. I noticed a few default settings but did not see one for the template. Or did I miss it? grin
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 19164
        • 1,215 Posts
        Quote from: dev_cw at Dec 08, 2007, 06:55 AM

        Question: is there a parameter to set the template for a new document. I have a situation where the parent has one template but the children use another and it is a bit overwhelming for my client to remember to change the template when creating new documents. I noticed a few default settings but did not see one for the template. Or did I miss it? grin

        There is no such function, but i think its possible to realize.

        In my version i added a default parent field to $mm->mm_default(). Its usefull for news, for example. If you are select news template when creating or editing document, parent automatically set to default parent, so when document saved, it alway will be in news folder. And you can hide parent field in news template.

        In function mm_default($field, $value=’’, $roles=’’, $templates=’’, $edit=false, $eval=false) i added new parameter $edit. 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.

        Here is version with all of my modification based on laurentc class.

        All actions in mm.actions.php, this file contains actions from one of the my projects, but all text and some comments in russian, sorry.
          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]
          • 7231
          • 4,205 Posts
          Thanks, I have downloaded and will install on local server as soon as I get a chance.
            [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

            Something is happening here, but you don't know what it is.
            Do you, Mr. Jones? - [bob dylan]
            • 14050
            • 788 Posts
            I have downloaded and installed the updates from Metaller. My mm.actions.php file looks like this:

            //Product Templates
            $producttpl = '16';
            
            $mm->mm_hideTabs('preview, settings,meta','','$producttpl');
            $mm->mm_createTab('Product Details','products', '', $producttpl, '', '600');
            $mm->mm_moveFieldsToTab('tvgPrice,tvgWeight,tvgDiscount', 'products', '', $producttpl);
            


            Everything but mm_hideTabs() works as expected. The tabs remain and are not hidden. This is an 0.9.6 install. Any ideas?
              Jesse R.
              Consider trying something new and extraordinary.
              Illinois Wine

              Have you considered donating to MODx lately?
              Donate now. Every contribution helps.
              • 19164
              • 1,215 Posts
              Hi.

              Are there any js errors on this page? Try to remove space after "preview,"
              $mm->mm_hideTabs('preview,settings,meta','','$producttpl');
                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]
                • 14050
                • 788 Posts
                Removed the space, Firebug is showing no errors, and they still are not being hidden.
                  Jesse R.
                  Consider trying something new and extraordinary.
                  Illinois Wine

                  Have you considered donating to MODx lately?
                  Donate now. Every contribution helps.
                  • 19164
                  • 1,215 Posts
                  Hmmm, i have no any ideas now.

                  Try to insert path to your local jquery.js that i put in the archive inside the plugin code, in $js_url = ’’;
                    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]
                    • 7455
                    • 2,204 Posts
                    sometimes the changing order of instructions can do the trick

                    try calling the hidetab as last item see if that works
                      follow me on twitter: @dimmy01
                      • 14050
                      • 788 Posts
                      Tried both suggestions. No luck. When I get around upgrading to 0.9.6.1, I will see if the problem is still there.
                        Jesse R.
                        Consider trying something new and extraordinary.
                        Illinois Wine

                        Have you considered donating to MODx lately?
                        Donate now. Every contribution helps.

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