Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am usig entity reference to nodes that users can decide to hide titles on.
Now i want to print all these nodes from a node--type.tpl.php andexclude user defined node titles.
I am using
$exclude_title_nids=variable_get('exclude_node_title_nid_list', array());
and
if (!in_array($subsection->nid,$exclude_title_nids))
to get this done but this seems a little dirty and not scalable, any best practice recommendations are welcome.
Thank you
Comments
Comment #2
fizk CreditAttribution: fizk commentedTry using this function from exclude_node_title.module:
Comment #3
Neslee Canil Pinto