found a module that can auto generate node title -> source
the following code could hide the page title according to 'page' and 'story' content type, source
function THEMENAME_preprocess_page(&$vars) {
// Titles are ignored by content type when they are not desired in the design.
$vars['original_title'] = $vars['title'];
if (!empty($vars['node']) && in_array($vars['node']->type, array('page', 'story'))) {
$vars['title'] = '';
}
}
?>
However,to disable the link of the title that will lead back to the post, go to node.tpl.php and disable the print $node_url
No comments:
Post a Comment