-
Notifications
You must be signed in to change notification settings - Fork 3
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
Adds new hook_localgov_publications_menu_tree_alter() hook. #119
Conversation
For a quick example of what this is for, we use this on H&F to show a different shorter title in the menu block to the node title. EG: https://www.lbhf.gov.uk/publications/corporate-plan/hf-plan-2023-2026 "About" in the menu has the node title "About this plan". To do this, we use a field that we've added to most content types called field_lbhf_teaser_title, which is used anywhere we need a shorter title. The code to swop it over that uses the hook in this PR looks like this:
|
Looks like a useful thing, but I don't think I've ever written a hook. Flagging for @ekes, @stephen-cox or @andybroomfield to take a look for awareness as much as anything. |
@andybroomfield Implementing this hook in a theme works for me now. Care to re-review it? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working for me also, thanks.
No description provided.