After upgrading from D6 to D7 via Drush, Page Title displayed the token pattern code rather than text in page titles; i.e., the page title was shown literally as [page-title] | [site-name] rather than the actual page title | site name. Apparently Page Title/Token syntax has changed between D6 and D7 and the syntax was not updated automatically on site upgrade; D6 [page-title] is now D7 [current-page:page-title] and [site-name] is now [site:name].
It took me quite some time to realize why page titles weren't being displayed correctly; I hope this behavior can be corrected or documented prominently to ease the upgrade process.
Comment | File | Size | Author |
---|---|---|---|
#4 | page_title-install-token-update-1376832-4.patch | 1002 bytes | mrf |
#2 | page_title-install-token-update-1376832.patch | 1.1 KB | mrf |
drupal-page-title-d7-upgrade-issue.png | 120.4 KB | forbesconrad |
Comments
Comment #1
nicholasThompsonThis is an important thing to add to the update - however it'd be very difficult to cover ALL tokens (in a FROM -> TO array map)..
Comment #2
mrf CreditAttribution: mrf commentedDid some research and it looks like token has already solved the hard part in it's own upgrade path.
Comment #3
mrjmd CreditAttribution: mrjmd commentedThanks for this patch! It seems to work, although I did have to remove the following line as it was throwing a 'cannot redeclare' error on update.php:
include(drupal_get_path('module','token') . '/token.install');
Comment #4
mrf CreditAttribution: mrf commentedGuess that line wasn't needed for whatever reason those install functions weren't available when I was working on it...
Here's an update.
Comment #5
amitgoyal CreditAttribution: amitgoyal commented@mrf - looks good to me.
Comment #6
GiorgosKworks as advertised
please commit
Comment #7
yan CreditAttribution: yan as a volunteer commentedPatch from #4 works fine for me too. Thanks! Commit would be nice after three years.