It would be nice if there was also a views count field, which just simply returns the number of results of another view.
Is that something you are willing to put in this module? I'll try to make a patch for it.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | views_field_view-1107034-9-Count-field.patch | 2.06 KB | geek-merlin |
Comments
Comment #1
cyberwolf commentedAnd here's a patch (only tested against Views 2 so far so might need some work).
Comment #2
cyberwolf commented... and also a patch compatible with Drush make
Comment #3
cyberwolf commentedPlease ignore the previous file, it contained some other work in progress. Attaching a patch identical to the one in comment #1 for Drush make here.
Comment #4
Alconaft43 commented+1 for this feature, good to use it in contemplates.
Comment #5
ikeigenwijs commentedsubscribe
Comment #6
AndrzejG commentedsubscribe
Comment #7
gaëlgHere's a first try for D7. Only works for default views backend (SQL).
Comment #9
geek-merlinThanks everyone for getting this ball rolling, this is in fact an important feature.
A downside of the patches before is: It's a 5kb copy-paste-change of existing code.
This is neigher reviewable nor maintainable.
But it inspired me to create a patch that simply adds a "count" option with only a few lines.
I#M happily using this in production.
Please test & set RTBC so we can get this in.
Comment #10
vladimirausThank you for your contributions.
Drupal 7 is no longer supported.
Closing the issue.