Join Tom Geller for an in-depth discussion in this video A yoga studio, part of Drupal 7: Reporting and Visualizing Data.
Before we start talking about how to report and visualize data using Drupal 7, let's delve a little into why? By looking at a few examples of Drupal sites that use the techniques that you will learn and use them in interesting ways. Now when I was writing this, I thought I would have to search all over for good examples, but the fact is almost all Drupal sites use some data display tricks that go beyond what Core Drupal allows. To find these sites, I went to the Drupal showcase at drupalshowcase.com. The first one I found is for a yoga studio in Philadelphia, that site is at wakeupyoga.com.
So let's take a look at this page. One way to tell which parts of a site are data driven is to look for things that are likely to change regularly. There are the bits that are dynamically generated. For example; take a look at this Today's Classes group over here, probably this is from a group of classes each one being an individual node in Drupal and then collected in some interesting way. Now it's possible that somebody's getting up really early, even before the yoga people and as you know they get up really early themselves, to change this everyday manually.
But probably it's happening automatically, using some sort of data collection system. Let's take a look, when I click on the Rise & Shine link, I see what looks like a node and you can see that it has a set of fields, teacher, whether or not there is preregistration, the times and so forth. Let's take a look at some of the others. Yup, they all follow a very similar pattern which also suggests that they're coming off of the same Content type in Drupal. From wandering around the site I can start to floss out some things about how it was built.
For example; let's take a look at Schedules, here we see a calendar view which also has all of these different classes, there's our Rise & Shine and if we click it, we go right back to that same screen. This group of teachers is probably also a data collection set. We see here when we click on any one of the teachers, it's a very similar format. For example; each one has a picture, a name a little thing at the beginning and so forth. Again, this is probably all based on a pattern which is defined by a content type.
Let's go back to the homepage and take a look again at some of these individual classes. When I click on any one, I notice also that there are links up here at the top, South Philadelphia the location and Peak of the Week, which I assume is part of a series. When I click that I see all of the classes in that series, this may very well be through a taxonomy in Drupal, and you will learn how to do that later in the course. So there are two techniques that you will learn. There's this one, the Taxonomy links that is the ones that lead you to a list of similar information and you learn about that in using Taxonomy fields to create Categories.
The other kind of link you will learn about is in the video connecting two fields using references, that's how we are able to look at any one of these courses and see who teaches it, when we click there, we are making a reference to the person who teaches it from the node. That showed us a little bit about how this site reports and visualizes data. Let's look at a few other examples, so we can see how different sites do the same thing.
- Planning the data structure of a site
- Creating record templates with custom field types
- Connecting fields using references
- Sorting and filtering data
- Varying how a view appears in different displays
- Formatting views with grid, list, table, and jump
- Creating multi-part views using attachments
- Importing and exporting views
- Extending views with relationships
- Understanding and using location data
- Exporting data