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).

Comments

guillaumev’s picture

StatusFileSize
new4.04 KB

Here 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...

bojanz’s picture

Status: Active » Needs review

Interesting patch. Changing status so that it shows up on my list of things to review.

guillaumev’s picture

StatusFileSize
new4.05 KB

Patch adapted to latest dev version...

bojanz’s picture

Project: Views Bulk Operations (VBO) » Rules Bonus Pack
Version: 7.x-3.0-beta3 » 7.x-1.x-dev
Component: Actions » Miscellaneous

Moving this to Rules Bonus Pack, since this is where the "misc" Rules - Views integration resides nowadays.
I hope that's okay.