Currently creating taglists by content type lists all content of that type regardless of status. It may be useful to be able to specify what status(es) you'd like to filter by, but in the meantime here's a quick and dirty fix to remove unpublished nodes from the taglist.

Line 207 of taglist.load.inc is currently:

$result = db_query('SELECT n.nid FROM {node} n WHERE n.type = "%s" order by n.%s %s', $contenttype, $tl_properties['sort_method'], $tl_properties['sort_sequence']);

Replace this with:

$result = db_query('SELECT n.nid FROM {node} n WHERE n.type = "%s" AND n.status > 0 order by n.%s %s', $contenttype, $tl_properties['sort_method'], $tl_properties['sort_sequence']);
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Roi Danton’s picture

Status: Active » Fixed
FileSize
4.77 KB

Thanks, added filter and committed. If you find any bugs then report them here, pls (corresponding Patch attached).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.