samvera / hyku-next

Hyku informational static web site built with NextJS
https://samvera.github.io/hyku-next/
1 stars 0 forks source link

No way to dictate display order for news items, presentations, etc. #1

Closed DraxIndustries79 closed 5 months ago

DraxIndustries79 commented 5 months ago

Story

When I enter news items or presentations in contentful, they display in the order I enter them - last created or edited at the top of the page. This is regardless of the historic published date or the presentation date. Additionally, and more importantly, if you edit a previously publish post it moves it back up to the top ("most recent") regardless of its original placement. There seems to be no way to reorder them. So in order to migrate old news and presentations to the new site, the only way for them to appear in order on https://samvera.github.io/hyku-next/news is to enter the oldest first moving to most recent last.

Note: This isn't urgent, just a nice-to-have. We won't be migrating content often. Workaround: You can dictate the order by unpublishing all news items entered, then publishing them again in the order you want to display them. This is no more work than any other UI for arranging publication order, just takes some figuring out. Ideally, News would be dictated by Publish Date.

Acceptance

adamjarling commented 5 months ago

@DraxIndustries79 This should now be wrapped up, automatically filtering by Publish Date, descending in the UI code.