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).

CommentFileSizeAuthor
#2 views.page_title.inc-1081326.patch653 bytesmaciej.zgadzaj
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jefftrnr’s picture

I 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.

maciej.zgadzaj’s picture

Status: Active » Needs review
FileSize
653 bytes

Actually, 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.