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

Make footnotes orderable #74

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Make footnotes orderable #74

merged 1 commit into from
Oct 18, 2024

Conversation

willbarton
Copy link
Contributor

Our content editors are finding that the footnotes list in the Wagtail editor page changes order on them after saving a batch of footnotes. This creates some UX headaches (along with the fact that Wagtail gives InlinePanels an automatic index number, which creates confusion in the context of footnotes).

This small change makes the Footnote model inherit from wagtail.models.Orderable. This has the dual effect of preserving add-order of the footnotes for each page, and allowing a content editor to move them around as needed, ensuring that footnotes are always listed in a predictable, user-changeable, order in both the footnote selector and at in the page editor.

Rather than a potentially random order, that changes from initial draft after save, allow a content editor to change the ordering of footnotes in the editor by making them inherit from `wagtail.models.Orderable`.
Copy link
Member

@zerolab zerolab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zerolab zerolab merged commit 1437efd into torchbox:main Oct 18, 2024
7 of 8 checks passed
@willbarton willbarton deleted the orderable branch October 21, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants