feat: PRSDM-11850 Expose section chain for breadcrumb - #132
Open
kelvinmanley wants to merge 1 commit into
Open
Conversation
kelvinmanley
requested review from
Gerrit-van-Niekerk,
NicholasDunham,
aLR8,
asalvi0,
christopherbrunsdon,
dev-pieter and
yandisakat
September 4, 2026 11:02
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The change is small, self-contained to Hugo template additions, and introduces a clear, consistently-applied data contract for Enterprise breadcrumb rendering.
Pull request overview
This PR adds a serialized “ancestor” (section chain) payload to the rendered HTML for Enterprise/WYSIWYG contexts so the editor can build a breadcrumb UI from page metadata.
Changes:
- Added
data-ancestorsattributes (JSON) to page and article wrapper elements whenenterprise_enabledis set. - Introduced a new Hugo partial (
common/ancestors) that returns the current page’s ancestor chain (excluding home) as{title, url}items. - Documented the feature in the changelog.
File summaries
| File | Description |
|---|---|
| layouts/partials/page/single.html | Adds data-ancestors JSON to the Enterprise-only wrapper for single-page rendering. |
| layouts/partials/page/list.html | Adds data-ancestors JSON to the Enterprise-only wrapper for list/section rendering. |
| layouts/partials/common/ancestors.html | New data-returning partial to compute and return the ancestor chain for breadcrumbs. |
| layouts/partials/article/item.html | Adds data-ancestors JSON to Enterprise-only article items so breadcrumbs can be derived per item. |
| CHANGELOG.md | Adds an entry describing the new breadcrumb ancestry exposure feature. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
JIRA_TICKET_URL
What does this PR do?
Exposes the page's section chain so the WYSIWYG editor can render breadcrumbs
Why is this change needed?
This is required for the Agentic UI updates
Related PR
https://github.com/SPANDigital/presidium-js-enterprise/pull/1564
How to test
Screenshots/Video (optional)
Screen.Recording.2026-09-04.at.12.55.24.mov