I have used a vocabulary to tag page and story nodes, but would like a taxonomy menu to reflect only story nodes.

I can do that by filtering in the view I create, but the count seems to include the page nodes, as well. I am using custom path, if that makes a difference.

Is there any way to filter before calculating the count?

Thanks

CommentFileSizeAuthor
#2 taxonomy_menu-count_node_types.patch2.43 KBjohn.money

Comments

jsibley’s picture

In the meantime, advanced token menu did the trick. Thanks, though.

john.money’s picture

Status: Active » Needs review
StatusFileSize
new2.43 KB

Attached patch was written after this one since I also needed this functionality. You will likely need to apply both. My attached patch does a couple things:

  • creates a new setting display_num_node which lets you limit the count by one or more content types
  • uses the core taxonomy module taxonomy_term_count_nodes to iterate through selected content types (the function only accepts a single type as the second parameter)

Patched against 6.x-2.x-dev (2011-Dec-02).

Status: Needs review » Needs work

The last submitted patch, taxonomy_menu-count_node_types.patch, failed testing.

dstol’s picture

Status: Needs work » Postponed
dstol’s picture

Issue summary: View changes
Status: Postponed » Closed (outdated)

The Drupal 6 version is no longer supported