When using Views to list a bunch of content which have "Exclude node title" checked, it still displays the title. I'm guessing it's just a matter of figuring out which Views hook to use and where to set the title to the empty string.

Comments

damd’s picture

For what it's worth, this is what I'm currently using (in my custom theme):

function MY_THEME_views_pre_render(&$view) {
  if ($view->name == "footer" && user_access('use exclude node title')) {
    $ex_ids = variable_get('exclude_node_title_nid_list', array());
    foreach ($view->style_plugin->row_plugin->nodes as $nid => $node) {
      if (in_array($nid, $ex_ids)) {
        $node->title = '';
      }
    }
  }
}
remi9k’s picture

gabrielu’s picture

Status: Active » Closed (works as designed)

This works if you show Node teaser, and check to hide title from teaser view. It will hide it from views and any other place the teaser is loaded.

Install version 7.x-1.4 for all this features.

Let me know,
Gabriel