I got some dynamic sorting of entries through a url parameter. But do I understand it right that you can't sort on the tag list field?

If that is true, is there any workaround?

The solution seems to be amazing easy.

Adding the next code and it was fixed:

public function isSortable()
    return true;

Question: why isn't this in core?

How would sorting work with 5 entries with 5 tags each?

Sort on the first value.

I got the point why it is not in the core.

Yeah, in some cases that would be ok, but overall it's a bit of a weird experience for an author if the order in which you added a tag affected how it would sort.

Nevertheless, if your client is happy, then it's a bonus :)

Nevertheless, if your client is happy, then it's a bonus :)

At least I'm happy that it works ;-)

It's probably the way I use (or misuse) the tag field. So clients can easily assign a category with an own name and without the hassle of first make a new entry in a category section.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details