Home in Drupal (home page of drupal)

In order that would make the home page you can create a unique file in the template with the name of page-front.tpl.php, but if you create a template and you simply need to determine a home page or not, you can use drupal_is_front_page. If the current home page - TRUE, otherwise - FALSE. So we can write

<?php
if(drupal_is_front_page())
echo "Это главная страница";
else "Не главная страница";
?>

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.