-
Notifications
You must be signed in to change notification settings - Fork 153
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
child pages of "Giving" don't show their own title #7571
Comments
Pomax can help out on this ticket! |
Have requested access to Wagtail to view example page |
let's do an audit before we decide how to move forward: let's understand the difference between title and header, so we can figure out the best way to show "the correct one" based on whether something is a singleton page, a root of a tree of pages, or a child in a tree of pages. As I recall, the title is a "wagtail" requirement, principally responsible for the page slug (and yes, it can be used in templates, but that's not "what it does", that's only "what you could do" =) whereas we use the header as string that "wins" in a template that has to choose between whether to show the header or title as main on-page content identifier for users. However, we should verify that's (a) what we actually do right now, and (b) whether we need to keep doing that. For menu navigation, we also have |
Confirmed with Pomax, I'll make a list of the affected page types and the logic involved, then arrange a call with Pomax and Kristina. |
Page/template investigation This investigation covers what is diplayed in the H1 element on applicable pages as per the original issue. I haven't looked at the menus that use the header field as that's a different component, do we need to investigate these too, if so would a separate issue be less likely to cause confusion? The title/heading logic that displays the H1 is contained in the
The H1 is populated by these variables in the following priority order:
root is a custom variable (an instance of a page) who's value is set depending on the page's parent type, see individual descriptions below. Individual page logic Homepage Banner Page Primary Page MozFest Homepage MozFest Primary Page Questions/issues
The first link is a Banner page with a Campaign Index page ancestor (parent), so root will be the page itself and its own title will show in H1. With regard to the last three comments related to staging, none of my changes are on staging and these seem to related to the menu rather than the H1, so maybe we discuss and spin off into a separate issue? Phew @kristinashu @Pomax |
@jamilasnell @Pomax @kristinashu Can we close this one if the page has been recreated using a different type? |
Curious what @Pomax thinks? We solved for the original problem with a quick fix but do you think this will be a reoccurring issue we should fix - does this help clean up or complicate our code? |
I'd like to mull this over for a bit to see what work (if any) Rich's findings suggest might be worth doing. |
@mtdenton there is valuable info in this ticket but the original request is no longer needed. Is it ok close? |
Apologies, this comment fell through the cracks. Closing now. |
STR:
Jesse W is trying to create a new page under /giving and is having this same issue. Page is launching next week.
The text was updated successfully, but these errors were encountered: