Uploaded image for project: 'Hippo Site Toolkit 2'
  1. Hippo Site Toolkit 2
  2. HSTTWO-3967

Allow default (no value) sort function in hippofacnav:sortfunction

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Similar issues:

      Description

      When configuring result set sorting for faceted navigation, a sort function can optionally be specified for each sort property.

      For example:

      • hippofacnav:sortby = {'myhippoproject:title', 'myhippoproject:subtitle'}
      • hippofacnav:sortfunction = {'lower-case', 'normalize'}

      If no hippofacnav:sortfunction property exists, default sort function is used. But if hippofacnav:sortfunction exists, the only allowed values are "lower-case" and "normalize". In other words, it is not possible to have default sort function for one sortyby property, and e.g. "lower-case" for another.

      For example, when you have:

      • hippofacnav:sortby = {'myhippoproject:date', 'myhippoproject:title'}

      It would make sense to use "lower-case" or "normalize" for "title". But for "date", neither makes sense.

      If an empty string would be accepted like this:

      • hippofacnav:sortfunction = {'', 'normalize'}

      The default sort function would be used for date.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nvankampenhout Niels van Kampenhout
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: