Count field value in referenced entity is set globally. count per content type will be usefull , especially when user entity is referenced in different content type like project team, sports club etc.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | entityreference_count-restrict-count-to-specific-bundles-2035601-1.patch | 2.27 KB | ayesh |
Comments
Comment #1
ayesh commentedtry the attached patch. This will add a new setting to the field settings page to narrow down the count by bundles (node types, etc). Bundle will be checked with
nr.bundlecolumn if not empty.Comment #2
giorgio79 commentedComment #3
giorgio79 commentedEven though git gave a whitespace warning, the patch seems to be working fine :)
Comment #4
Exploratus commentedPatch is awesome. I wasn't able to use this module until this patch came along. Since I have different content types using the same reference fields, I couldn't count by node type. Now I can. This is a major improvement and should be committed. Great job!
Comment #5
damienmckennaComment #7
WorldFallz commentedHad to adjust the patch for #2053273: Unknown column 'n.status' and also received the whitespace warning, but seems to be working fine. Thanks everyone!