Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-5117

Default sorting of the table (ListDataTable)

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Outdated
    • 2.18.03
    • None
    • None
    • None

    Description

      The default sorting of the tables in the gallery and asset section is set on column "name".
      Today the user can change the order or a different column, but cannot turn off the ordering (to get the manual order).
      The improvement request is that the user should be able to view/toggle sort order to "manual ordening by the user".

      Workaound:

      The AbstractListingPlugin method; isOrderable() is always returning false. Only in the FolderViewPlugin (document section) this is implemented as:

      @Override
      protected boolean isOrderable() {
      IModel<Node> model = getModel();
      try

      { Node node = model.getObject(); return node != null && node.getPrimaryNodeType().hasOrderableChildNodes(); }

      catch (RepositoryException e)

      { log.error(e.getMessage()); }

      return false;
      }

      In the ImageGalleryPlugin and AssetGalleryPlugin it's returning false as from the AbstractGalleryPlugin. This is resulting to set the standard ordering to "name".

      It would be nice to have the ordering configurable? Or is there a specific reason to the current setup?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ksalic Kenan Salic (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: