Hi,
In order to be able to send the content of a view by email, I would like to know if the possibility to render a view in a variable, which seems to exist in Drupal 6, is still available for Drupal 7.
It seems like this possibility was available within the module "Rules and Views integration" for Drupal 6 (http://drupal.org/node/1149050) but it looks like this module has now been replaced by Views Bulk Operations for Drupal 7 (see http://drupal.org/node/1179930).
So I was wondering if someone had started some work on this, and if that's not the case, if a patch would be welcome (I'm ready to work on this patch).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1376174-view_into_variable-3.patch | 4.05 KB | guillaumev |
| #1 | 1376174-view_into_variable-1.patch | 4.04 KB | guillaumev |
Comments
Comment #1
guillaumev commentedHere is a patch which allows VBO to render a view into a variable while using Rules.
I'm using it to send weekly notifications by email of the latest content of a site. I create the view with a filter Content: Post date >= -7 days, then I use rules to render the view in a variable before outputting that variable in an email and sending it to my site's users.
I think this is only one single use case for this feature, but I believe there are many others...
Comment #2
bojanz commentedInteresting patch. Changing status so that it shows up on my list of things to review.
Comment #3
guillaumev commentedPatch adapted to latest dev version...
Comment #4
bojanz commentedMoving this to Rules Bonus Pack, since this is where the "misc" Rules - Views integration resides nowadays.
I hope that's okay.