Hi everyone,
I tried to work with the newly introduced jcrDatasource property “sortBy” to sort by node name (aka jcrName). To my suprise, this isn’t going to work, because this special configuration case is not handled in info.magnolia.ui.contentapp.JcrQueryBuilder#orderBy. Are there other ways to sort by node name which I didn’t recognize?
Hi Roman,
thank you for your answer.
You’re right, the content was created in a custom app without a dialog field for handling the jcrName.
This is because handling of the node name in Magnolia is error-prone and we try to avoid this whenever possible:
I was just wondering, why sorting by Name(node) is not implemented for sortBy, but for com.vaadin.data.provider.Query#getSortOrders() in the same method info.magnolia.ui.contentapp.JcrQueryBuilder#orderBy – and wanted to make sure I’m not missing an important piece of code.
Yes, I’m aware that this is used only in list view.
Peter
--
You received this message because you are subscribed to the Google Groups "Magnolia User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to user-list+...@magnolia-cms.com.
To view this discussion on the web, visit https://groups.google.com/a/magnolia-cms.com/d/msgid/user-list/3dab4f5f-de72-4f8a-8807-2797a8c36f94n%40magnolia-cms.com.
To unsubscribe from this group and stop receiving emails from it, send an email to user-list+unsubscribe@magnolia-cms.com.