Drupal Views in CiviCRM Dashlets

Opublikowane
2014-12-12 10:58
Written by
brandonferrell - member of the CiviCRM community - view blog guidelines

Here at Skvare, we strive to make Drupal and CiviCRM work as one to accomplish goals in a way that is simple and intuitive. Continuing our work in Drupal/CiviCRM integrations, we’ve cooked something new up for you all. We would now like to take this opportunity to introduce Views in CiviCRM Dashlets.

What is Views in CiviCRM Dashlets?

Views in CiviCRM Dashlets is a Drupal module that allows one to create a dashlet containing a Drupal View. That is right, in addition to CiviCRM reports you can use the power of Drupal Views to create a customizable experience. This opens grand new opportunities to use our imagination and drive to strengthen the bond between Drupal and CiviCRM. A majority of the functionality of Views is currently at your fingertips, with further enhancements on the horizon.

How did we get to this point?

We had the idea of rendering a View in a dashlet, but that’s all it was. An idea. We researched extensively trying to find out how exactly a dashlet works. Curiously, I created a forum post where I received a small piece of knowledge and took our first big step in creating this module. After that, it was a matter of development of ideas. Thank you totten for the quick and helpful response.

Basic Instructions

It is very simple to create a dashlet. All you have to do is:

  1. Open/create your view and add a new “CiviCRM Dashlet” display
  2. Configure the display to your liking and save
  3. Visit www.yourdomain.com/civicrm and click “Configure Dashboard”
  4. Add your created dashlet to a column and click “Done”

And now your brand new dashlet is on your dashboard!

Why Views in CiviCRM Dashlets?

  • Simplicity -- Using CiviCRM reports to create dashlets is a great feature of CiviCRM, but new reports require PHP and SQL coding skills. Some organizations have staff with these skills, but many do not. Many more people do have the ability to use site-building techniques to create Views through its powerful UI.
  • Customize - Customize your view to render your CiviCRM or Drupal data just how YOU want it. Quickly add sorts, filters, fields, relationships, no results behaviors, and rewrite field output functionality.
  • Style - Make it pretty! Use View’s built in style features to wrap fields in html elements and add classes to fields for css styling.
  • Content -- More than just data, place content on the dashboard. Display a node, add links to documentation, or list your latest Drupal Commerce orders. If it can be Viewed, it can be on the Dashboard.
  • Combine - Use in combination with the CiviCRM Entity and Entity Reference modules to create rich data structure displays combining Drupal content with CiviCRM data. Also, there are tons of great modules that expand Views functionality and most will work with Views in CiviCRM Dashlets.
  • Reuse - Use the same view for a Drupal page and CiviCRM dashlet.
  • Much more that we have not thought of!

"What can I do to help?"

If you would like to join the journey of Views in CiviCRM Dashlets then go ahead and create an issue. This issue could be a bug report or even a feature request. Views in CiviCRM Dashlets is a work in progress, but there is ALOT you can do with it already. We would be very grateful for your feedback. This is a team effort, and our community is the number one team.

For more information, visit the project page at https://www.drupal.org/project/civicrm_views_dashlets

Comments

This is a great flexible solution for a lot of uses!

The Skvare development team recently presented this solution at the Dallas CiviCRM Meetup - to great interest of the participants. The community participation and encouragement brought forth the completion of the above release.

wow. this is a really cool extension and should be of great benefit to drupal and views users.

thanx for working on it and contributing it back to the ecosystem :)

lobo

This is very useful even if it is Drupal-specific. Please publish as an alpha or beta. If you need assistance getting the project approved, please ask the community for help.

Hello all,

Views in CiviCRM Dashlets is now a full project! You can visit the new project page here: https://www.drupal.org/project/civicrm_views_dashlets. The blog post has also been updated with the new link.

Since releasing this, we have also been working on a similar module that allows views to be implemented into contact pages. You can read more about that here: https://www.drupal.org/project/civicrm_views_contact_page

We are looking into fixing the fullscreen functionality and adding views argument support. Keep checking for future updates!