Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Surveying field types

From: Drupal 7: Reporting and Visualizing Data

Video: Surveying field types

Now that we started poking around the Views interface a little bit you've probably noticed the overwhelming amount of fields available for display, sorting and filtering. I'd like to take a few minutes to look through them so you can get a sense of the patterns that tie them all together. Although there are dozens of fields with lots of different settings you'll find that there are some similarities that make them easier to understand. To start as usual we go up to Structure and Views. I'm going to open up the Employee list page in an extra tab here so we can switch back and forth if we like.

Surveying field types

Now that we started poking around the Views interface a little bit you've probably noticed the overwhelming amount of fields available for display, sorting and filtering. I'd like to take a few minutes to look through them so you can get a sense of the patterns that tie them all together. Although there are dozens of fields with lots of different settings you'll find that there are some similarities that make them easier to understand. To start as usual we go up to Structure and Views. I'm going to open up the Employee list page in an extra tab here so we can switch back and forth if we like.

This is the way that I generally like to work. Then I'm going to go down and edit that View. As we scroll down to the Preview area we get a sense of what it's going to look like. Notice however that the appearance actually changes when you go back to that front page, that has to do with the theme although the basic information is the same. We'll go back to our View. We now have three fields in our View; we added them in the video diving into the Views interface. We can edit any of them by going up to this Fields area here and clicking them.

In general, when you edit a field the settings are in five groupings. The one up here at the top is the most general grouping. Create a label and Exclude from display tends to be the same pretty much no matter what fields you add, Link to the original piece of content is more or less special to the title part although you will see it in some other fields. These other ones Style Settings, No Results, Rewrite, and More you can open by clicking on their links and see all of the different things in there. Some of them expand when you check their checkboxes, like so.

We'll go into all of these in a little bit more detail in the video Adjusting the Settings of Individual Fields in a View. But for now I'm just going to cancel out. Now let's go back and add a field. Here we see that huge list of all of the field types that you can add and as I've mentioned before there's the Filter here and you can Search for the individual field type here. I want to talk a little bit more about this Filter. Most of the criteria that are relevant to specific fields are in the Content group here. When I select it you see that it includes such things as the Family name, the First name, Employee photo.

These are fields that we added earlier on in the course. In general they fall into five groups. The first criterion is actual fields. This is what I just showed you, the photo, the family name, the first name and so forth, and if we look at our list back here we see that it has Appears in: that means it's an actual field, whereas this Edit link does not actually appear in anything, it's what's called metadata that's attached to the field. The second kind is Static metadata. These are the things that don't change and it's easier to understand what that is if we look at the Dynamic metadata.

For example, when something was last updated if there are any new comments and so forth. If we go back to our list you can see what we're talking about. For example, Last comment author and Last comment time are examples of dynamic metadata, whereas Link is an example of something that's static. It's specific to that field but it doesn't change over time. The fourth kind is Control links. You might've noticed that there are some things here that lets you edit the content. So you can actually create a view for administrator's that lets them quickly click on an Edit link and go back and change the content itself.

There is also a Delete link and a few other things like that available. Finally, we may have some other kinds of links that are defined by modules. If we go back to our list here and go back up to the top and change this Filter to Feeds item you'll see some of the criteria that appeared only because we installed the Feeds module earlier on in the course. Now the Field settings that you see depend very much on the fields that you add. To demonstrate I'm going to add an employee photo to this View as I've done a few times in this course already. I'll go to Content then I'll search for photo, and there it is, we add it and Add in configure fields.

You might remember before we only had three options up here. It was Exclude from display, Link to node and Create label, but here since it's an image we can also change the way that it's formatted and the style, and in fact, I'm going to change this to a thumbnail because you might remember some of those graphics were really big, and if we leave it in original image it'll just fill the entire screen. Finally, we can decide whether we want to make that image clickable. I'll say yes and I'll link it to the file itself. I'll Apply and scroll down to our preview to see what that looks like.

Yeah, I like that a lot. And you might remember, by the way, that we earlier added a filter so we're only showing those that have photos. I'm actually going to remove that now. Now we see all of the employees, including those that don't have photos. Finally, I'm going to move things around a little bit. I've never really liked that we had the ID here and that's how you get to the full information about the person. So I'm going to move the photo over to that location, remove the ID and make it so that instead of seeing the file when you click on this you see the actual record.

First, I'll go up and Save and see what it looks like on our page. Yup, it looks pretty much as we expected and if you click on any of these now you just see the file itself. Let's go back and change that. Go down to Fields and rearrange. On this page you can not only move things around, you can also remove them. So I'll remove the Title, and remember, this only removes it from the View, it doesn't affect any of the underlying data. Then I'll move the photo up to the top and save it by clicking Apply.

Finally, I'll change what that photo links to by clicking on photo and then saying Link image to the Content and Apply. Then to be sure we'll look at our Preview. Yup! It looks pretty good. Save it and check it out on the page itself by reloading. Yup! That's exactly what I want to happen. Once again, I recommend at this point that you take some time to explore all of those field types that look interesting to you, that's what I did when I first discovered Views and I found that learning the quirks among them gave me a sense of what could be displayed and the limits of what I'd have to work with.

It was like adding colors to my palette and from time-to-time I still go back and re-explore all of the colors that are available to me in Views.

Show transcript

This video is part of

Image for Drupal 7: Reporting and Visualizing Data
Drupal 7: Reporting and Visualizing Data

44 video lessons · 6804 viewers

Tom Geller
Author

 
Expand all | Collapse all
  1. 13m 50s
    1. Welcome
      50s
    2. What you need to know
      4m 49s
    3. Using the exercise files
      8m 11s
  2. 12m 58s
    1. A yoga studio
      3m 18s
    2. A national organization
      2m 51s
    3. An entertainment company
      4m 3s
    4. An organization with hyperlocal branches
      2m 46s
  3. 40m 49s
    1. Planning your site's data structure
      3m 31s
    2. Creating record templates
      5m 40s
    3. Understanding Drupal 7's data-template model (entities)
      4m 27s
    4. Creating categories using two methods
      6m 14s
    5. Creating unusual field types
      6m 38s
    6. Reusing and grouping fields
      6m 25s
    7. Looking at Drupal's database
      3m 56s
    8. Migrating custom fields from Drupal 6
      3m 58s
  4. 20m 46s
    1. Connecting two fields using references
      5m 35s
    2. Importing data using Feeds
      8m 48s
    3. Changing the appearances of fields
      6m 23s
  5. 53m 15s
    1. Understanding why views are useful
      5m 1s
    2. Learning from built-in views
      5m 52s
    3. Creating and deleting a simple view
      5m 41s
    4. Diving into the Views interface
      8m 48s
    5. Surveying field types
      6m 16s
    6. Adjusting the settings of individual fields
      5m 31s
    7. Sorting and filtering data
      8m 11s
    8. Changing Views' administrative options
      7m 55s
  6. 33m 33s
    1. Varying how a view appears in different displays
      10m 10s
    2. Formatting views with grid, list, table, and jump menu appearances
      6m 43s
    3. Rewriting field output for interesting results
      4m 21s
    4. Creating multipart views using attachments
      6m 8s
    5. Styling the output of views
      6m 11s
  7. 33m 56s
    1. Importing and exporting views
      6m 21s
    2. Controlling access to data
      6m 44s
    3. Adding dynamic filters to views
      5m 41s
    4. Extending views with relationships
      6m 24s
    5. Improving data administration with Views Bulk Operations
      8m 46s
  8. 29m 43s
    1. Understanding locational data
      4m 43s
    2. Setting up the Location module
      9m 42s
    3. Displaying basic maps with the GMap module
      8m 37s
    4. Displaying custom maps
      6m 41s
  9. 23m 50s
    1. Exporting data in simple text form
      7m 4s
    2. Adding dates and calendars
      8m 32s
    3. Displaying content in a slideshow
      8m 14s
  10. 1m 20s
    1. Next steps
      1m 20s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Drupal 7: Reporting and Visualizing Data.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.