Subscribe: RSS
  • 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.
    • Anyone know how to do this?
        www.9thwave.co.uk
           WEB | DESIGN | PRINT
      • 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 1 year, 9 months ago.]
        • 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.
          • How could I missed that wink. Thanks.
            • 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
              • I guess I have to be the thread owner to mark this answered, because I don't see any mark button wink
                • 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 ;-)
                  • 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?
                    • 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!