We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21257 MODX Staff
    • 730 Posts
    Thanks for the bump on that Eol,
    I actually was ready to commit MODX-592 last weekend, then experienced a minor local filesystem catastrophe here and it got forgotten in the ensuing madness.
      Mike Schell
      Lead Developer, MODX Cloud
      Email: [email protected]
      GitHub: https://github.com/netProphET/
      Twitter: @mkschell
      • 36416
      • 589 Posts
      Quote from: netProphET at Jun 19, 2009, 08:24 AM

      Thanks for the bump on that Eol, ...

      No problem, let me think a bit longer about some quick&dirty cache size optimizations before final release... wink
        • 22797
        • 134 Posts
        I just installed the Evolution 1.0 RC on a couple of my sites, and one thing that I really, really, really wish could be implemented is a change of the default sort order of the document tree. We’re all used to seeing alphabetized lists of documents in file browsers, and I can’t understand why this isn’t the default sort order.

        Beyond this, my personal preference is to sort by menuindex then pagetitle. This allows me to put special pages at the top (e.g. pages that are a part of the navigation system*) and the rest of the pages below them, in alphabetical order. I’ve had to tweak the core code to accomplish this. In fact, I’ve been implementing this tweak on every update for a couple of years now, and it would be nice to not have to do that any more.

        If there were a way to set a default sort order in the main configuration, allowing for multiple sort parameters (e.g. "menuindex ASC, pagetitle ASC") that would be so, so nice.

        And... to go even one step further, being able to exclude words like "the," "a," "an," etc. from the sorting would be make the sorting just about perfect. I suggested a way to do this in a previous post:

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

        This is part of the same sorting customization that I’ve been implementing over the last couple of years. As I mention in that post, it is language-specific, so it would require creating an array of words and characters that need to be excluded on a language-by-language basis, but it’s something I can’t live without. The people who use my web sites demand it, and I’ve had to make that change every time.

        [*NOTE: Putting some pages at the top and all the rest below works best when you have a way of designating the default menuindex value for all new pages. I created a plugin to do this, but it could also be part of the main MODx configuration. You could choose a random number like 500, for example, which allows for the custom numbering of up to 499 pages to before the default pages, and 499 pages after them. The default could be left at 0, but admins could modify the default to any number they like.]
          • 22797
          • 134 Posts
          Actually, I forgot to mention that I like containers/folders to be listed first, so my preferred sort order would be

          isfolder DESC, menuindex ASC, pagetitle ASC

          Just having a way to customize the default sort order in the main configuration by typing in something like the above line would be a fantastic time-saver.
            • 22797
            • 134 Posts
            And I just realized, if the text field used for that configuration parameter is allowed a large enough number of characters, I could implement my whole preferred solution with a simple copy and paste. I could paste this into the config file:

            isfolder DESC, menuindex ASC, 
            CASE 
            WHEN substring(pagetitle from 1 for 2) = "A " THEN substring(pagetitle from 3) 
            WHEN substring(pagetitle from 1 for 3) = "An " THEN substring(pagetitle from 4) 
            WHEN substring(pagetitle from 1 for 4) = "The " THEN substring(pagetitle from 5) 
            WHEN substring(pagetitle from 1 for 7) = "“" THEN substring(pagetitle from 8) 
            WHEN substring(pagetitle from 1 for 1) = '."'\"'".' THEN substring(pagetitle from 2)  
            WHEN substring(pagetitle from 1 for 1) = "'."'".'" THEN substring(pagetitle from 2) 
            ELSE pagetitle 
            END


            That pretty much solves the whole thing for me.
              • 25663 MODX Staff
              • 12,272 Posts
              paulb, if you make a patch and post it in JIRA, we’ll get it reviewed and implemented pending the outcome.
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 14509
                • 14 Posts
                Am curious to know how i can update my current 0.9.6.3 version to the 1.0 RC
                Do i only upload the "install’ folder to my FTP and ’update’ ?

                Thanks smiley
                  • 26931
                  • 2,314 Posts
                  Am curious to know how i can update my current 0.9.6.3 version to the 1.0 RC
                  Do i only upload the "install’ folder to my FTP and ’update’ ?

                  -> http://wiki.modxcms.com/index.php/Upgrading_Guide

                  i prefer the second (Alternate Method) one

                  j
                    • 14509
                    • 14 Posts
                    Quote from: sharkbait at Jun 20, 2009, 02:24 AM

                    Am curious to know how i can update my current 0.9.6.3 version to the 1.0 RC
                    Do i only upload the "install’ folder to my FTP and ’update’ ?

                    -> http://wiki.modxcms.com/index.php/Upgrading_Guide

                    i prefer the second (Alternate Method) one

                    j

                    Thank you smiley
                    will try it out
                      • 22770
                      • 285 Posts
                      Quote from: johnjohn at Jun 20, 2009, 09:09 AM

                      Quote from: sharkbait at Jun 20, 2009, 02:24 AM

                      Am curious to know how i can update my current 0.9.6.3 version to the 1.0 RC
                      Do i only upload the "install’ folder to my FTP and ’update’ ?

                      -> http://wiki.modxcms.com/index.php/Upgrading_Guide

                      i prefer the second (Alternate Method) one

                      j

                      Thank you smiley
                      will try it out
                      I’ve sometimes had problems with permissions after using the second method, so now I always use the first one. Just a warning.