4

Has anyone added a Drupal view to a CiviCRM template?

For example, we have build a CiviCRM email template with a Latest news list on the right hand side of the template. We would like to pull in the latest news links from a Drupal view that is referencing a New content type.In theory it is similar to adding a block to the right hand side of the template.

This way users creating the template do not need to manually add the links to the right hand side of the newsletter. Thanks.

1 Answer 1

4

Fuzion did create a module some time ago that lets a token pull a drupal view in to a mailing. Take a look at https://github.com/eileenmcnaughton/civicrm_views_token

It is sometime since we had to do any work on it but hopefully it still works.

At the time it was pretty limited in what it offered but it did mean that you could eg build a 'latest news' view in Views and then have that pulled in to a bulk mail.

2
  • I currently use this with Drupal 7 and Civi 4.7.11 and it works great
    – frTommy
    Commented Nov 27, 2016 at 22:31
  • Thanks @petednz and frTommy. I will test this module and see how it goes. Commented Dec 7, 2016 at 10:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.