Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-4339

Add sort filters on filtered pages service

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • 3.8, 4.0.0
    • None
    • None
    • None

      Currently, there is no sort criteria available in settings.
      It would be nice to add a least Alphabetic criteria (A-Z, Z-A)

          [CMS-4339] Add sort filters on filtered pages service

          Add a sort on sitemap is under-performance.
          The default alphabetical order have already been implemented on this service.

          Bérénice Maurel added a comment - Add a sort on sitemap is under-performance. The default alphabetical order have already been implemented on this service.

          Currently, default page filter service sort criteria is an alphabetical filter on title.
          I think, we should let the user choice between : alphabetical or sitemap order.

          It should be useful for users who used it as summary.

          To do :

          • Add a service parameter : alphabetical or sitemap
          • Update org.ametys.web.repository.page.actions.SetPageFilterInRequestAttributesAction to call addSortCriteria on PageFilter object.
          • Update pipelines which call SetPageFilterInRequestAttributesAction

          Note : Filters already set the sort criteria.

          Bérénice Maurel added a comment - Currently, default page filter service sort criteria is an alphabetical filter on title. I think, we should let the user choice between : alphabetical or sitemap order. It should be useful for users who used it as summary. To do : Add a service parameter : alphabetical or sitemap Update org.ametys.web.repository.page.actions.SetPageFilterInRequestAttributesAction to call addSortCriteria on PageFilter object. Update pipelines which call SetPageFilterInRequestAttributesAction Note : Filters already set the sort criteria.

          Or maybe we could at least add a hardcoded sort criteria to do an alphabetical sort on titles.

          Raphaël Franchet added a comment - Or maybe we could at least add a hardcoded sort criteria to do an alphabetical sort on titles.

          The content digest can have many criteria, a sort is necessary.
          For pages, you only have the title... I think this is more a rendering issue...

          Raphaël Franchet added a comment - The content digest can have many criteria, a sort is necessary. For pages, you only have the title... I think this is more a rendering issue...

            bmaurel Bérénice Maurel
            dcartier David Cartier-Michaud
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: