Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
My front page is a View. Changes made to the Front Page on the Page Title config screen does not modify it.
It is treating like any other page (i.e. Page Title - Site Name) rather than what I have entered (Site Name - Stuff I want in the title).
Comment | File | Size | Author |
---|---|---|---|
#2 | views.page_title.inc-1081326.patch | 653 bytes | maciej.zgadzaj |
Comments
Comment #1
jefftrnr CreditAttribution: jefftrnr commentedI have a views-slideshow page set for my frontpage, and my page title isn't working either.
I've tinkered around a bit, and it seems the views_page_title_pattern_alter hook function is being called after the page_title_page_title_pattern_alter hook function, changing my $pattern variable back to a blank string.
I think teh views_page_title_pattern_alter hook needs a condition that checks if the view-page is being used as a front-page. Or, maybe it should check if a pattern exists before changing it. Can someone look into the best way to fix this is? Anyone with a view frontpage will run into this problem.
Comment #2
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedActually, from what I see the order is fine - first page_title_page_title_pattern_alter() is being called, and then views_page_title_pattern_alter(), but it seems the problem is that there is no front page case implemented in views_page_title_pattern_alter() at all.
Attached patch fixed it for me.