Translated Front Page

Component ID

1178344

Component name

Translated Front Page

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module adds a template variable to identify front page translations.

The is_front variable can be used in a template file to check whether the displayed page is the front page or not. However, this does not apply to the translations of the front page (when content translation is in use). This module addresses this by adding a new template variable is_translated_front, which is set to TRUE for nodes that are translations of the front page.

Usage example:

<?php // Do not display the title on the front page ?>
<?php if ($title && !($is_front || $is_translated_front)): ?>
  <h2><?php print $title; ?></h2>
<?php endif; ?>