We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8921
    • 55 Posts
    I've been struggling to find a way to accomplish sorting the tags in Articles by name. I know TagLister can have sortBy `tag` rather than `count`, but I can't seem to find where articles actually makes the TagLister call. I also just tried brute forcing a solution by editing TagLister's code to default to `tag` rather than count, but that didn't work either.

    It seems to me that sorting tags by name or count should be an option on the Advanced Tab. Maybe it's on the road map.

    Any suggestions as to how I can resolve this?

    Thanks.
      • 36549
      • 572 Posts
      Anyone know how to do this?
        www.9thwave.co.uk
           WEB | DESIGN | PRINT
        • 46378
        • 20 Posts
        It's probably too late wink, but I've got the same problem now smiley. Instead of changing php code (which can stops working if You upgrade articles) You can use a little hack to do that. In articles advanced settings on Tagging tab add this sufix to Tag listing chunk name:
        ` &sortBy=`tag


        Whole line should looks like this, assuming tpl name is tagCloudTpl:
        tagCloudTpl` &sortBy=`tag


        It's some kind of code injection hack that injects sortBy parameter to the php code in articlescontainer.class.php. Beware of using backtick sign (`)only two times and space after first backtick. In other case it won't work. [ed. note: pelzak last edited this post 7 years, 8 months ago.]
          • 28432
          • 372 Posts
          With Article, you can change this property in the snippet property ;-)
          Go to the snippet tagLister -> Property Tab -> unlock properties -> find sortBy line and you can change to Tag or keep to count.
            • 46378
            • 20 Posts
            How could I missed that wink. Thanks.
              • 28432
              • 372 Posts
              Quote from: pelzak at Aug 16, 2016, 04:55 PM
              How could I missed that wink. Thanks.

              You're welcome!
              Can you put the post has answered
                • 46378
                • 20 Posts
                I guess I have to be the thread owner to mark this answered, because I don't see any mark button wink
                  • 28432
                  • 372 Posts
                  Quote from: pelzak at Aug 16, 2016, 05:00 PM
                  I guess I have to be the thread owner to mark this answered, because I don't see any mark button wink
                  You're right ;-)
                    • 8921
                    • 55 Posts
                    Quote from: Steeve at Aug 16, 2016, 08:09 PM
                    Quote from: pelzak at Aug 16, 2016, 05:00 PM
                    I guess I have to be the thread owner to mark this answered, because I don't see any mark button wink
                    You're right ;-)

                    Original poster here... Even though I moved on from ModX 3 years ago, I still get these forum notifications. Glad to see an answer was finally posted nearly 4 years later *roll eyes* (thanks Steeve).

                    I can't see how to mark the post as "answered"? Maybe because it was created as a discussion rather than a question?
                      • 28432
                      • 372 Posts
                      Original poster here... Even though I moved on from ModX 3 years ago, I still get these forum notifications. Glad to see an answer was finally posted nearly 4 years later *roll eyes* (thanks Steeve).
                      Sorry for this. You can uncheck the check box below the reply button.

                      I can't see how to mark the post as "answered"? Maybe because it was created as a discussion rather than a question?
                      You're right too!