We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28673
    • 178 Posts
    Yes. It would be really good if some of the devs wrote an article (here or on the blog) about all the dos and donts for good optimization practices.

    Will you do it? tongue

    Bye!
      • 21838
      • 284 Posts
      Actually I wrote a general article in my blog: http://www.novolo.de/en/know-how/blog/2011/how-to-improve-performance-website
      If you’re using my modx-boilerplate lot of stuff is built-in.

      I’d like to write an article about MODX-related performance but until mid of May I don’t have time to do that, sorry.
        MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)
        • 31037
        • 358 Posts
        Quote from: stratboy at Mar 30, 2011, 07:40 AM
        all the dos and donts for good optimization practices.

        Oh yes, that would really be nice. Knowing when to write custom snippets instead of using getResources, how to make those snippets fast (with Xpdo), when to use output modifier instead of IF-snippet, or perhaps none of those? Use resource filtering based on a TV, good or slow? Making a separate table, fast or slow? Fastest way of querying it? And so on...

        Modx is fantastic in the way you can do everything in many ways to get to where you want, but only one solution can be the optimal.

        So, a general guide for optimization would be optimal. tongue With lots of general examples.

        Or perhaps at least a dedicated part of the forum for this so it would be easy to find discussions about best ways of doing stuff.

          • 28673
          • 178 Posts
          Quote from: Uncle68 at Mar 31, 2011, 03:30 AM

          Quote from: stratboy at Mar 30, 2011, 07:40 AM
          all the dos and donts for good optimization practices.

          Oh yes, that would really be nice. Knowing when to write custom snippets instead of using getResources, how to make those snippets fast (with Xpdo), when to use output modifier instead of IF-snippet, or perhaps none of those? Use resource filtering based on a TV, good or slow? Making a separate table, fast or slow? Fastest way of querying it? And so on...

          Modx is fantastic in the way you can do everything in many ways to get to where you want, but only one solution can be the optimal.

          So, a general guide for optimization would be optimal. tongue With lots of general examples.

          Or perhaps at least a dedicated part of the forum for this so it would be easy to find discussions about best ways of doing stuff.




          I totally agree! smiley
            • 21838
            • 284 Posts
            Wow, that’s a lot work you’re requesting here. Think this is way too much for one blog post.
              MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)
              • 28673
              • 178 Posts
              Quote from: smooth-graphics at Mar 31, 2011, 06:08 AM

              Wow, that’s a lot work you’re requesting here. Think this is way too much for one blog post.

              :) Yes, probably smiley But it would be REALLY important for the community, I guess

              There are some resources, aside the official wiki, that are quite fabulous for the community and probably really important even for the official developers, for the fact that really these articles help to spread modx in the world and gain users.

              I’m speaking about articles like these:

              http://www.bobsguides.com/modx-revolution.html

              or the cheatsheets:

              http://modxcms.com/forums/index.php/topic,48252.0.html

              Well, yeah smiley

              About the optimization, well, modx lets you have a lot of ways to do the same thing (and this is AWASOME), but this means that, more than other cms out there, it needs some more documentation about this topic. Really. We all want the world full of modx ninjas, don’t we? So we must build them wink smiley

              thank you, have a nice day





                • 21838
                • 284 Posts
                Yeah, probably Bob is writing about that in his book? We’ll see…
                  MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)
                  • 28673
                  • 178 Posts
                  Quote from: smooth-graphics at Mar 31, 2011, 06:49 AM

                  Yeah, probably Bob is writing about that in his book? We’ll see…

                  Hey hey hey, what??? A book??? Hey.... Wow...
                    • 3749
                    • 24,544 Posts
                    Here’s my optimization tutorial: tongue

                    Custom snippets are faster and more efficient that output modifiers.

                    Custom snippets are faster than getResources, but may not be worth the inconvenience.

                    Custom snippets are *way* faster and more efficient than conditional (if, then, else) output modifiers.

                    Custom snippets are *way* faster than math output modifiers.



                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting
                      • 28673
                      • 178 Posts
                      Quote from: BobRay at Mar 31, 2011, 02:01 PM

                      Here’s my optimization tutorial: tongue

                      Custom snippets are faster and more efficient that output modifiers.

                      Custom snippets are faster than getResources, but may not be worth the inconvenience.

                      Custom snippets are *way* faster and more efficient than conditional (if, then, else) output modifiers.

                      Custom snippets are *way* faster than math output modifiers.


                      :) Thank you Bob. But, I’m relatively new to modx and also I’m italian, so sometimes I can’t fully understand english words.
                      In particular here, what do you exactly mean with the terms ’output modifiers’, ’conditional (if, then, else) output modifiers’ and ’math output modifiers’? Could you maybe write a brief example for each?
                      And with output modifiers do you maybe also mean snippets like IF?