Hello, I would like a simple computed field that would get me the wordcount of all nodes across a term from the vocabulary the node is in.

For instance, I have a report for "food production in 2008 in the United States".

It would be under the term '2008' in the vocabulary 'year', and the term 'United States' in the vocabulary 'Nation".

The computed field on the node will find the applicable term under in the nation vocabulary and all up the wordcount across all terms. So for this node the field will get the total wordcount for all nodes in the term United States, while a field on the node called "food production in 2008 in the Russia", will get the total wordcount for all nodes in the term Russia.

If you can do this please contact me via the drupal contact form with your price. I look forward to working with you. :)

Comments

indianroo’s picture

As a first cut, if you are comfortable with PHP code and know your way around the taxonomy API,
then you can look at Computed Field from CCK.

There are already taxonomy methods to supply a term and get the matching node list and so on.

Your query could almost be done by Views but I don't think a computed field can be a Views output
unless you write the code to execute the view. This could have performance implications though.