Hi.

When I activate the front_page module, and put in content, set to front_page, and go to front_page, the title appears.

This does not happen in my test site where I am using same theme etc. I tried to disable the module and reactivate it, and still no go.

Should I just delete the module off server, and reinstall it and reactivate it? Does front_page add anything in the database and change anything?

Thanks. I really need to get the front page working without the title of the page displaying.

Comments

Phillip Mc’s picture

the front page is designed not to display the page title, unless you are using a redirect

waynedrupal’s picture

Thanks. I was using redirect, but changed that to not being redirected. I also used Login Destination, but removed that. But even so, the title still appears. Any thoughts?

Phillip Mc’s picture

Use a php snippet to display just the node->body of the node you're redirecting to in the front page settings textarea, select allow PHP and it will "pull" the node body of the node you're redirecting to and display that in the front page.

Example:

<?php
$newfrontnode = 12; // change the node id to be the one you want to reference.
$newnode = node_load($newfrontnode);
$frontoutput = node_view($newnode, FALSE, FALSE, FALSE);  
print $frontoutput;
?>

notes:

  1. The default switches for the node_view function are: $teaser = FALSE, $page = FALSE, $links = TRUE for example in the snippet above, if you changed the last FALSE to TRUE, it would display the $links for that node.
  2. The node_view function doesn't display the node title.
  3. More details about the node_view function here: http://api.drupal.org/api/function/node_view
Phillip Mc’s picture

Status: Active » Closed (fixed)