Skip to content

Conversation

@dchukhin
Copy link
Collaborator

If this changeset needs to go into the FXC codebase, please add the WMO and FXC label.

This pull request depends on #16814, which should be reviewed first

One-line summary

This pull request makes the advertising sub-navigation editable through Wagtail.

Significant changes and points to review

Following the work in #16814, this pull request adds

  • a NavigationLinkBlock with the fields necessary for navigation links (types of links are: 1. a block on the Advertising index page, 2. an internal page, 3. an external link)
  • a sub_navigation streamfield to AdvertisingIndexPage, so users can create multiple items in the sub-navigation
  • validation for the AdvertisingIndexPage, verifying that subnavigation items are valid (can't choose a non-existent block, can't remove a block that's being used as a link, etc.)
  • updates templates, so that all children of the Advertising index page inherit the same sub-navigation

Issue / Bugzilla link

WT-334

Testing

To test locally, go to Wagtail and create/edit an "Advertising index page" page in the page tree, and create a sub-navigation in the "Settings" panel. Try to make the sub-navigation identical to what is on http://localhost:8000/en-US/advertising/. Also, verify that the same sub-navigation exists on all children of the Advertising index page.

lucianoratamero and others added 30 commits October 7, 2025 01:19
dchukhin and others added 24 commits October 31, 2025 12:10
…334-cms-components-for-advertising-sub-navigation
…334-cms-components-for-advertising-sub-navigation
…334-cms-components-for-advertising-sub-navigation
…zilla/bedrock into WT-334-cms-components-for-advertising
…334-cms-components-for-advertising-sub-navigation
…334-cms-components-for-advertising-sub-navigation
…334-cms-components-for-advertising-sub-navigation
…f github.com:mozilla/bedrock into WT-334-cms-components-for-advertising-sub-navigation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend HTML, CSS, JS... client side stuff Needs Review Awaiting code review Wagtail Development related to our use of Wagtail CMS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants