[Tags] Allow tags to have default sort orders
tobyzerner opened this issue · 2 comments
tobyzerner commented
From @tobscure on August 27, 2015 13:50
Sometimes it might be useful to specify a default sort order for a tag – like a News tag might want the most recently created discussions at the top (Newest) rather than the most recently updated discussions (Latest).
The database field for this is already in place – it just needs to be made use of!
What needs to be done:
- Update the CreateTag and EditTag command handlers to allow saving of the defaultSort property.
- Add the appropriate field to the admin JS extension's EditTagModal.
- Probably make the forum JS extend the IndexPage's
params
method and set the sort param depending on the tag that is currently selected.
Copied from original issue: flarum/tags#14
fifkis commented
Hi can i work on this issue ?
franzliedke commented
@fifkis Yes, of course, you are very welcome to send a pull request!