Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have set the page title node to show a nice title for the front page. Then created a views page with a block and a feed to show on the main page. I want the page title of the view to be the title of the "page portion" of the front-page but not of the front page as a whole... but somehow it overrides Page Title module and shows a pretty ugly title built up of tokens from the default Page Title setup. Any ideas?
Comment | File | Size | Author |
---|---|---|---|
#9 | fix_front_page_title_for_views-932822.patch | 515 bytes | drurian |
Comments
Comment #1
dawehnerViews just uses the drupal-core menu system.
So this seems to be a bug in the "page title" module.
Comment #2
thomas.lucas CreditAttribution: thomas.lucas commentedThank you! I guess the issue is already moved to page title now, so I don't have to. :)
Comment #3
nicholasThompsonI'm not sure I follow the configuration of the frontpage, is it a node (eg node/1) or a panel or a view?
If the current page is the frontpage, a different pattern is used - its possible to just use that to define the frontpage Page Title, if that helps?
Comment #4
Rizhaya CreditAttribution: Rizhaya commentedI defined the “Frontpage” page title at the Page title module settings page. Then I made a view that overrides a front page (view page has a path “node”). Now Page title module uses the “Default” pattern for the front page. Previous version of the module used “Frontpage” pattern and that was nice.
Comment #5
zarudnyi CreditAttribution: zarudnyi commentedSame here, Page Title module doesn't work with views as frontpage and use "Default" pattern “Frontpage” pattern instead.
Thank You.
Comment #6
scarr CreditAttribution: scarr commentedSubscribing - this is happening to me to. Any ideas?
Comment #7
waltWright CreditAttribution: waltWright commentedSubscribing. Work arounds?
Comment #8
drurian CreditAttribution: drurian commentedConfirming. I could recreate the frontpage view as a view with a page title, but this should work out of the box.
Comment #9
drurian CreditAttribution: drurian commentedOk, apparently views_page_title_pattern_alter() in views.page_title.inc overrides page_title_page_title_pattern_alter() that sets the frontpage pattern. I've attached the quick fix.