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

[VUFIND-747] Create Breadcrumbs view helper. #4236

Draft
wants to merge 8 commits into
base: dev
Choose a base branch
from

Conversation

demiankatz
Copy link
Member

@demiankatz demiankatz commented Feb 7, 2025

This PR adds a view helper that uses templates to render breadcrumb trails. This makes it easier to customize and modify breadcrumbs globally, and makes breadcrumb construction more readable in individual templates.

For now, the helper manipulates $this->layout()->breadcrumbs for backward compatibility, but it could be modified to use its own internal string instead of the layout at some point in the future if we want to make it more self-contained.

TODO

  • Finish porting templates to use the helper
  • Run full test suite
  • Update v12 deprecation ticket to note RecordLinker::getBreadcrumbHtml deprecation
  • Update changelog when merging
  • Resolve VUFIND-747 when merging

@demiankatz demiankatz added the architecture pull requests that involve significant refactoring / architectural changes label Feb 7, 2025
@demiankatz demiankatz added this to the 11.0 milestone Feb 7, 2025
@demiankatz demiankatz marked this pull request as draft February 7, 2025 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architecture pull requests that involve significant refactoring / architectural changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants