• Resolved Roger Correia

    (@correiar)


    I use MLA to post PDF documents to our Club Library page.

    The documents are organized by categories that are assigned to them. I would like to sort the documents within a CATEGORY by TAG values that are assigned, such as 100, 101, 102, etc.

    Is this possible? I have not seen anything in the documentation to help me…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Good to hear from you again, and thanks for your question. You can find some information in these earlier topics:

    I want to sort the Gallery

    Sorting based on taxonomy terms

    Basically, sorting on taxonomy term values is complicated because:

    1. Items can be assigned to multiple term values and there is no one right way to determine the proper sort order.
    2. Finding the terms assigned to an item requires SQL JOIN operations involving four database tables.

    As outlined in the earlier topics, the easy way to resolve these problems is to define a custom field that contains the term slug values, then sort on the custom field. It’s not optimal but works well enough if the term assignments are not too volatile.

    With the current MLA version you can define a custom field and populate it with something like terms:attachment_tag(slug) or terms:attachment_tag(slug),single. You can find more information about the “terms:” prefix in the “Field-level Substitution Parameters” section of the Settings/Media Library Assistant Documentation tab.

    I hope that gets you started on a solution that works for your application. If you have problems or further questions about the above suggestions I can give you more specific help next week when I return home from a weekend trip.

    Plugin Author David Lingren

    (@dglingren)

    It has been a month since my last post in this topic. I assume you have found a solution that works for your application.

    I am marking this topic resolved, but please update it if you still need help with your question. Thanks for your continued interest in the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sorting Based on Att. Tag Values’ is closed to new replies.