I have a bunch of different node types using 1 field to reference a node type.
It could be nice if there's a way to split the count by node type, ie, this topic has 5 subtopics, 3 replies, and 10 addendum.
Thank you for the fantastic module!
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | restrict-count-by-node-types-734044-6.patch | 1.92 KB | ayesh |
Comments
Comment #1
gilgabar commentedSounds like a good idea. Just to clarify a bit and make it explicit, it would be something like:
The content type 'topic' is having references to it counted. The content types 'subtopic', 'replies', and 'addendum' each share a nodereference field that references nodes of type 'topic'. Maybe it would be called something like 'field_topic_reference'. Currently when setting up a nodereference count field on 'topic' you can only select the single field 'field_topic_reference' which counts all the references from all three types. You would like to be able to create three separate nodereference count fields that would allow you to select the field 'field_topic_reference' plus specific content types that use it. Does that sound right?
Comment #2
Flying Drupalist commentedYes precisely. Thank you so much!
Comment #3
caschbre commentedI would be interested in this as well.
Comment #4
xenophyle commentedThis would be really useful.
Comment #5
kadimi commented+1
This explains why I need this feature:
- I have the content type:
Candidatewhich is referenced fromInternal Interviews&External Interviews, I gave the node reference field the namefield_candidate- Now I need to know how many
Internal Interviews&External Interviewsa candidate have had, and I'm not interested in the sum of the two, which is what Nodereference Count currently offers.I will be using the computed field module with a SQL query + rules but it seems that the feature requested by the OP is more adequate.
Comment #6
ayesh commentedI know this is an old feature request. I ran across the same problem and created a patch to restrict the list of nodes by their types.
This patch is for 7.x-1.0 (and not head, because it has some differences that I could not figure out well).
thanks for the nice module!
Comment #7
ayesh commentedChanging the version to 7.x.
Comment #8
1kenthomas commentedBump.