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

Provide sort by node name in jcrDatasource definition

XMLWordPrintable

      In Apps, the newly added configuration sortBy in jcrDatasource does not handle the case of jcrName, where this special property is mapped to the sql statement ORDER BY NAME ASC|DESC.

      This is already done in info.magnolia.ui.contentapp.JcrQueryBuilder#orderBy for sorting nodes manually, but not for the configured datasource properties. Please add the node name handling to the sortBy implementation and document it.

      Then it would be possible to configure a jcrDatasource as follows.

      app.yaml
      datasource:
         $type: jcrDatasource
         sortBy:
            jcrName: ascending
       

      Patch added.

        Acceptance criteria

              jbenito Javier Benito
              philipp.guettler@aperto.de zzz_Philipp Güttler
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 0.25d
                    0.25d