Graphql query - Order by related category title #10800
-
Hi, I have an entry that has a few category fields. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is not possible out of the box. You could achieve it using the Preparse Field plugin, though. With the plugin installed, create a new Preparse field that stores the related category’s title. Then add the field to your entry type’s field layout, and resave your entries using the |
Beta Was this translation helpful? Give feedback.
This is not possible out of the box.
You could achieve it using the Preparse Field plugin, though. With the plugin installed, create a new Preparse field that stores the related category’s title. Then add the field to your entry type’s field layout, and resave your entries using the
php craft resave/entries
command. Then you can order your entries based on the Preparse field’s handle.