We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8522
    • 145 Posts
    I don’t want to start a flamewar here, but I still have to ask. The MODx manager includes now both MooTools 1.11 and jQuery (from MM). First off: Don’t get me wrong, I do think both are great frameworks for slightly different purposes, but I’m sure everybody would agree that mixing frameworks should be avoided (or not?).

    I know jQuery is very popular at the moment and there are some good working jQuery plugins out there. But this is an existing application using MooTools. It looks very unconsidered to me to include a plugin into the main distribution that comes with an other framework, especially since this could be done in MooTools as well.

    So what is the MODx policy?

    Admin Note: splitting from original discussion and updated title.
      • 25663 MODX Staff
      • 12,272 Posts
      Quote from: eerne at Oct 19, 2009, 11:13 AM

      I know jQuery is very popular at the moment and there are some good working jQuery plugins out there. But this is an existing application using MooTools. It looks very unconsidered to me to include a plugin into the main distribution that comes with an other framework, especially since this could be done in MooTools as well.

      So what is the MODx policy?
      Since Mootools and jQuery are currently co-existing, and the MODx team is making the updates and including both ... well I think you know what our policy is. tongue ManagerManager is 100% worth the inclusion of an additional library. If you’d like to update the Manager to the latest Mootools release and port ManagerManager to Mootools we’d certainly be glad to consider other alternatives. That said, I think it’d be significantly easier to get rid of the remaining few spots where an outdated version of Mootools still exists in favor of jQuery.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 21056
        • 327 Posts
        Quote from: eerne at Oct 19, 2009, 11:13 AM

        The MODx manager includes now both MooTools 1.11 and jQuery (from MM).

        MM doesn’t include it; it was included with QuickManager from 1.0, and MM is just piggybacking it! I was careful to ensure that MM is quite flexible about where it gets jQuery from, and has configuration options to get it from the version distributed with ModX, from another local source, or from Google API hosting.
          Author: ManagerManager plugin - customise your ModX manager interface

          Rckt - web development, Sheffield, UK
          • 8522
          • 145 Posts
          Since Mootools and jQuery are currently co-existing, and the MODx team is making the updates and including both ... well I think you know what our policy is.

          I’m sorry, but I really don’t know what the policy is. Either you just include every plugin that is cool and works or you decided to switch slowly to jquery (which I is fine for me). It’s just I’m no mind-reader, if this discussion has happend please point me to the thread.

          If I write or port a really awesome widget that uses Dojo will you include Dojo too?

          Tongue ManagerManager is 100% worth the inclusion of an additional library. If you’d like to update the Manager to the latest Mootools release and port ManagerManager to Mootools we’d certainly be glad to consider other alternatives. That said, I think it’d be significantly easier to get rid of the remaining few spots where an outdated version of MooTools still exists in favor of jQuery.

          Yes I’d like to contribute and have seen that the task is currently assigned to Mike Reid. So i’d like to get in touch with Mike smiley. I’m not so sure how the development of MODx is working right now. Is the philosophy code first and then all the coolest stuff will be included or are there discussions and decisions made first?

          eni
            • 8522
            • 145 Posts
            Quote from: ncrossland at Oct 20, 2009, 03:15 AM

            Quote from: eerne at Oct 19, 2009, 11:13 AM

            The MODx manager includes now both MooTools 1.11 and jQuery (from MM).

            MM doesn’t include it; it was included with QuickManager from 1.0, and MM is just piggybacking it! I was careful to ensure that MM is quite flexible about where it gets jQuery from, and has configuration options to get it from the version distributed with ModX, from another local source, or from Google API hosting.

            Yes you are right the jQ framework was already shipped with QuickManager’s LightBox, and used in the frontend. I thought I mention that too. Anyway my point is MM is linking to jQuery now in the MODx-manager, so we have 2 frameworks on the same document. It doesn’t matter if it is coming from Google or your own copy.

            I only want to ask what’s going on. What is the policy. Is it 2010 and normal to include various frameworks, since it works?

            This is not about which one is better. They all have their weird issues and I think this discussion should not be held here. It’s about testing 1.0.1-rc1, correct?

            cheers eni
              • 22668
              • 718 Posts
              I vote for migration from mootools to jquery.
                • 16610
                • 634 Posts
                Quote from: eerne at Oct 20, 2009, 04:05 AM

                I only want to ask what’s going on. What is the policy. Is it 2010 and normal to include various frameworks, since it works?

                MODx is the victim of it’s own flexibility. Since it’s so easy to use any framework you are used to with MODx developers will surely do just that. I think there’s no point fighting against it. Though there could be guidelines which recommends preferred framework(s). I believe majority of the front-end web developers will use jQuery for basic web site effects anyway.
                  Mikko Lammi, Owner at Maagit
                  • 25663 MODX Staff
                  • 12,272 Posts
                  Quote from: eerne at Oct 20, 2009, 03:43 AM

                  Since Mootools and jQuery are currently co-existing, and the MODx team is making the updates and including both ... well I think you know what our policy is.

                  I’m sorry, but I really don’t know what the policy is. Either you just include every plugin that is cool and works or you decided to switch slowly to jquery (which I is fine for me). It’s just I’m no mind-reader, if this discussion has happend please point me to the thread.
                  Currently our policy is to distribute the legacy code (Mootools) and the new code (jQuery). Our preference would be to only have one library, but since this is currently driven by donations of time, we have both and since there’s currently no major conflicts with the core distribution, we consider it OK, though certainly not ideal. Yes it’s a bit "icky" but I’ll take functionality over philosophy today (knowing that the intention is to change it down the road, sooner than later).

                  If I write or port a really awesome widget that uses Dojo will you include Dojo too?
                  Nope!

                  ManagerManager is 100% worth the inclusion of an additional library. If you’d like to update the Manager to the latest Mootools release and port ManagerManager to Mootools we’d certainly be glad to consider other alternatives. That said, I think it’d be significantly easier to get rid of the remaining few spots where an outdated version of MooTools still exists in favor of jQuery.

                  Yes I’d like to contribute and have seen that the task is currently assigned to Mike Reid. So i’d like to get in touch with Mike smiley. I’m not so sure how the development of MODx is working right now. Is the philosophy code first and then all the coolest stuff will be included or are there discussions and decisions made first? There’s some very cool things that can be done with Mootools for devs that prefer it as well, to be sure (e.g., the front-end xEdit project which is insanely cool is being done in Mootools). I don’t know if Mike will have time to focus on that task anytime soon, so any assistance there would be appreciated. Please feel free to PM me and we can discuss other options or we certainly can open a discussion in another thread.

                  Thanks for taking the time to inquire and your offer to participate with MODx’s future. Much appreciated!

                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 36416
                    • 589 Posts
                    Quote from: Lammikko at Oct 20, 2009, 05:13 AM

                    I believe majority of the front-end web developers will use jQuery for basic web site effects anyway.

                    I’m a web developer (front-end by necessity) and I prefer MooTools for web applications, which MODx Manager certainly is...
                      • 8522
                      • 145 Posts
                      Quote from: rthrash at Oct 20, 2009, 05:55 AM

                      Currently our policy is to distribute the legacy code (Mootools) and the new code (jQuery). Our preference would be to only have one library, but since this is currently driven by donations of time, we have both and since there’s currently no major conflicts with the core distribution, we consider it OK, though certainly not ideal. Yes it’s a bit "icky" but I’ll take functionality over philosophy today (knowing that the intention is to change it down the road, sooner than later).
                      Ok that makes sense.

                      I like the proposed markup changes http://svn.modxcms.com/jira/browse/MODX-1197

                      Sub-Tasks 1. of http://svn.modxcms.com/jira/browse/MODX-656 should be on hold, since the markup is likely to change. Or maybe closed if decided to go with jQuery.

                      BTW has there been thoughts about using either one of the UI libs?
                      http://jqueryui.com/demos/
                      http://mochaui.com/demo/
                      http://jxlib.org/

                      I’ll pm you soon. eni