Instead of always having to manually add the site name to overridden page titles it would be very beneficial if there was a field to define a pattern that was used. Here's an example workflow:

  • Have a node pattern set to "[title-raw] | [site-name]" with the site-name value being "example.com".
  • You edit a node with the title "green monkey" and override the page title to instead say "blah blah"
  • The outputted page title changes from "green monkey | example.com" to "blah blah", confusing the user

We should have either have a whole new field for a new pattern or an option to pass the title string for overridden objects through the default filter.

Comments

damienmckenna’s picture

As mentioned in #654758: The pattern overwrite the custom title, should the overridden titles also be processed for tokens? Is there a reason why I can't set the title for a node to "something about [site-name]" and expect it to process the token?

nicholasthompson’s picture

I'll test this - but the token template is wrong for starters... it should be:
[page-title] | [site-name]

And the correct behaviour for your example (node title = green monkey, page title = blah blah) should be:
blah blah | example.com

damienmckenna’s picture

So how would you handle this scenario:

  • By default, if you leave a vocabulary to use "[page-title] | [site-name]" as the pattern the titles will show as "Taxonomy term | example.com"
  • To get the desired default the vocabulary's pattern is set to "[cat] | [site-name]".
  • When an override is set it should use "[page-title] | [site-name]".
nicholasthompson’s picture

That sounds like a bug...

For any given "taxonomy/term/{tid}" page, the [page-title] value should either be the overridden page title or the term name...

damienmckenna’s picture

Status: Active » Closed (fixed)

Was a combination of Panels and misconfiguration.

techgirlgeek’s picture

So how'd you fix it?
We are having the same issue.