Grtlv 398 update article listing page template cptpp #3725
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Article Listing Pages:
Previously in article listing pages, the list was auto-generated in-template to create links to all child articles of each listing page. This used unsuitable styling and gave content editors no facility for modifying the order of items, changing the text used for the links, or adding leading text/headings to split up list items.
This PR introduces new styling and a streamfield to create the link list, along with a 'use_updated_link_format' toggle to allow the content editors time to transition to the new format. The toggle can be removed once all article pages have been transitioned by content editors. The streamfield allows content editors to add any amount of rich text and link blocks in any order to a listing page, allowing customisation of the list. As a part of the styling changes the hero image was removed following design feedback.
Article Pages:
Remove a css class hiding the 'related content' list on mobile devices.
Social media html import and positioning changing to use updated icons.
Page spacing altered to better conform with great container usage.
Why
The CPTPP agreement is getting ratified soon, and there will be links posted by marketing to new market articles of these types. Content and design both agree that a redesign was needed, and content wanted additional options to customise article listings with headings and custom links.
Screenshots:
Before:
Listing Page:
Article Page:
After:
Listing Page:
https://github.com/user-attachments/assets/5860642a-0a7b-4f7a-98cb-4604417e0aee
Article Page:
Tick or delete as appropriate:
Workflow
Reviewing help
Housekeeping
Security
Performance
Merging