Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3215

Page & component chooser field (available pages & components): Allow the customer to define a comparator-class to have an impact on the displayed order.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 5.2.10, 5.3.4
    • Fix Version/s: 5.3.8
    • Component/s: page editor, pages app
    • Labels:
    • Magnolia Release:
      5.3.8

      Description

      Problem:
      The page template one can choose in the pages app, and the components one can choose in the pages editor are sorted alphabetically.

      This is in many situations quite annoying:
      When the most often used pages and component have a "low" letter (t-z), they appear at the very bottom, or in case of page templates you need to click on "next" to get to the second tab pane -> you loos possibility to do all via keys, mouse click is a must.

      For example the "Section" page is always in the second pane.

      Source of problem:
      /modules/pages/fieldTypes/templateSelect defined info.magnolia.pages.app.field.TemplateSelectorFieldFactory
      Which delegates to a internal used comparator class.

      Solution:
      Allow to define/configure your own/custom comparator class on a select field.
      (Probably on any field that operates on more than just one value this would make sense)

      I think this is a often use case for select fields.
      Having an impact on the order of the values without the need to "duplicate" the originals Factory class just for injecting a different comparator.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ejervidalo Espen Jervidalo
              Reporter:
              cringele Christian Ringele
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: