Results 1 to 3 of 3

Thread: Sorting by a Select Field (Taxonomy)

  1. #1
    User
    Join Date
    07-01-09.
    Posts
    91

    Default Sorting by a Select Field (Taxonomy)

    I'm trying to sort an item list by a Select Field that draws it's data from the Taxonomy tree using the "Order By" box . It does sort it, but it sorts it by the ID# of the Field rather than the name itself..which makes little sense (from a usage standpoint). Is it possible to have it sort by the Field value rather than the ID?

  2. #2
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: Sorting by a Select Field (Taxonomy)

    Hi harley77,
    this is not so easy. But it will work with this (in Order by at the list Module):
    Code:
    (SELECT sorting FROM catalog_tablename AS cs WHERE cs.id=catalog_field) ASC
    catalog_tablename is the reference... like the taxonomie at your install.

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  3. #3
    User
    Join Date
    07-01-09.
    Posts
    91

    Default Re: Sorting by a Select Field (Taxonomy)

    THANK YOU! I bow before your awesomeness, that worked perfectly. I didn't realize we could use SQL statements inside the order By box.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •