Setting a page title to include node tokens, e.g.

[node:title] - my view mode

results in the page title being set to the exact string, no tokens are replaced. Although the configured string is passed through token_replace, the results aren't used in the call to drupal_set_title(). Patch correcting this to follow.

CommentFileSizeAuthor
#2 2038607-3.patch459 bytesleewillis77
#1 2038607-2.patch873 bytesleewillis77

Comments

leewillis77’s picture

Status: Active » Needs review
StatusFileSize
new873 bytes

Correctly pass the token replaced string to drupal_set_title().

leewillis77’s picture

StatusFileSize
new459 bytes

Sorry - ignore that - it also includes the fix for #2038137: View mode pages don't work with custom views created via hook_entity_info_alter(). Revised patch attached.

rballou’s picture

This patch is also applied in dev. And deserves a facepalm on my part. Thanks again.

rballou’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.