Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set order of collections and exhibits on display pages #173

Closed
phigg opened this issue May 14, 2024 · 2 comments · Fixed by #189
Closed

set order of collections and exhibits on display pages #173

phigg opened this issue May 14, 2024 · 2 comments · Fixed by #189
Assignees
Labels
enhancement ➕ New feature or request feature request 🧚 New feature request

Comments

@phigg
Copy link

phigg commented May 14, 2024

Is it possible to set the order of the how collections and exhibits appear on their respective display pages? Currently, they appear in the order they are published in Wagtail. Unpublishing and re-publishing exhibits doesn't permanently change the order. Once exhibits are re-published they go back to the original published order.

This is both an ov-wag and ov-frontend issue, so I'm not sure where to place it.

@mrharpo
Copy link
Contributor

mrharpo commented Jul 2, 2024

Sorting in Wagtail is not very customizable for pages. We can pick a default sort order, such as:

  • first_published_at - This is the current behavior
  • last_published_at - Sort by recently edited
  • title - Alphabetical

We can choose to sort either ascending or descending on these options.

Unfortunately, we have to pick one for everyone. It would be difficult to modify it to something that a user can select.

I vote for "most recently edited first".

@mrharpo mrharpo added blocked ⛔ Blocked by something feature request 🧚 New feature request labels Jul 2, 2024
@phigg
Copy link
Author

phigg commented Jul 5, 2024

I second your vote for "most recently edited first" / last_published_at. This will hopefully allow us to set the order by making changes.

@mrharpo mrharpo added enhancement ➕ New feature or request and removed blocked ⛔ Blocked by something labels Jul 8, 2024
@mrharpo mrharpo added this to the 🛰 Open Vault Launch milestone Jul 8, 2024
@mrharpo mrharpo mentioned this issue Jul 8, 2024
@mrharpo mrharpo closed this as completed in cb5c75d Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ➕ New feature or request feature request 🧚 New feature request
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

2 participants