diff --git a/README.txt b/README.txt index d52790b..7dc7d6c 100644 --- a/README.txt +++ b/README.txt @@ -77,6 +77,10 @@ Known Issues taxonomy term pages to work correctly. * Using Metatag with values assigned for the page title and the Page Title module simultaneously can cause conflicts and unexpected results. +* Using the Exclude Node Title module will cause the [node:title] token to be + empty on node pages, so using [current-page:title] will work around the + issue. Note: it isn't possible to "fix" this as it's a by-product of what + Exclude Node Title does - it removes the node title from display. Related modules diff --git a/metatag.install b/metatag.install index 5ccf17b..030b710 100644 --- a/metatag.install +++ b/metatag.install @@ -140,6 +140,16 @@ function metatag_requirements($phase) { 'description' => $t('The Metatag module is able to customize page titles so running the Page Title module simultaneously can lead to complications.'), ); } + + // Add a note if Page Title is also installed. + if (module_exists('exclude_node_title')) { + $requirements['metatag_exclude_node_title'] = array( + 'severity' => REQUIREMENT_INFO, + 'title' => 'Metatag', + 'value' => $t('Possible conflicts with Exclude Node Title module'), + 'description' => $t('The Metatag module\'s default setings for content types (nodes) uses [node:title] for the page title. Unfortunately, Exclude Node Title hide this during display so the page title ends up blank. It is recommended to change the "title" field\'s default value to "[current-page:title]" instead of "[node:title]" for any content types that Exclude Node Title is enabled for.', array('!url' => 'admin/config/search/metatags')), + ); + } } return $requirements;