When used as a token value in another field, [node_count] returned 7, rather than the actual node count. While this behavior is amusing, it's not what I expected.

Comments

archard’s picture

I assume you're talking about Views? That's strange. As long as the value in the database is correct for the node count, then you should pass this issue over to Views, because they are the ones responsible for generating the token values.

dirksonii’s picture

I am talking about using it in views, yes, sorry. And yes, it's very strange ^.^ But your answer seems very counter-intuitive- [node_count] returns an incorrect value, so I should talk to the views people about it? Tokens can be used in other contexts as well, yes? (At least, I've seen it in other contexts)

archard’s picture

Project: Term Node Count » Views (for Drupal 7)
Version: 6.x-1.3 » 6.x-2.6
Category: support » bug

Term Node Count is only responsible for keeping track of the term to node count associations in the database. If these are correct, then this module is doing its job. The tokens themselves are generated entirely separate from this module. The node_count data is exposed to Views, but in this case, it's Views which is generating the tokens, so unfortunately I can't help you. I'll pass this issue to Views.

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Are you sure 7 is not the right node count?

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No updates for more than 30 days.