Start learning with our library of video tutorials taught by experts. Get started

Drupal 6: Online Presentation of Data
Illustration by

Surveying other basic display settings in Views


From:

Drupal 6: Online Presentation of Data

with Tom Geller

Video: Surveying other basic display settings in Views

This is going to be a fun video. We'll be looking at the options in Basic setting section that we haven't talked about yet. So, it's going to be a real grab bag of unconnected information. However, each individual setting is a real treat because they each give you a good deal of control over your data's appearance. First, let's talk about settings that are covered in other videos. The highlighted sections you see here were covered in the video about attaching more information to views. The light colored one here was covered in the view about adding view displays. This part was covered in the video about Grid, List and Table formatting and finally, this section about Access is in the video about controlling access to views. The best way to explain what the rest of all of these settings are is simply to demonstrate them.
Expand all | Collapse all
  1. 12m 56s
    1. Welcome
      1m 12s
    2. Reviewing requirements
      3m 35s
    3. Using the exercise files
      3m 11s
    4. Touring examples of data visualization
      4m 58s
  2. 27m 56s
    1. Planning data structure
      8m 26s
    2. Importing and manipulating data
      6m 40s
    3. Looking at Drupal's database
      6m 13s
    4. Deciding whether to store personal data as nodes or users
      6m 37s
  3. 1h 13m
    1. Understanding the Content Construction Kit (CCK)
      4m 57s
    2. Creating new content types with CCK
      7m 26s
    3. Hiding the Body field
      2m 46s
    4. Reflecting CCK field data in the Title field
      7m 28s
    5. Managing CCK field placement
      7m 34s
    6. Exploring CCK's other features
      8m 22s
    7. Using other CCK field types
      3m 25s
    8. Adding date information as a CCK field
      8m 43s
    9. Including images as CCK fields
      10m 23s
    10. Connecting content to existing nodes
      5m 58s
    11. Using taxonomies to categorize and group data
      5m 59s
  4. 53m 54s
    1. Understanding why views are useful
      6m 12s
    2. Using SimpleViews to create basic content views
      5m 49s
    3. Diving into the Views interface
      11m 16s
    4. Adding fields to a view
      7m 12s
    5. Understanding iconic controls in the Views interface
      7m 15s
    6. Surveying the Sort, Filter, and Field options in Views
      5m 40s
    7. Adding view displays as pages, blocks, and RSS feeds
      10m 30s
  5. 43m 34s
    1. Overriding default settings on view displays
      8m 56s
    2. Attaching more information to views
      10m 57s
    3. Improving view appearances with grid, list, and table formatting
      9m 20s
    4. Surveying other basic display settings in Views
      11m 3s
    5. Altering a view's appearance through CSS
      3m 18s
  6. 55m 8s
    1. Importing, exporting, and cloning views
      6m 9s
    2. Controlling access to views
      7m 19s
    3. Learning from built-in views
      5m 52s
    4. Creating views that aren't based on nodes
      10m 6s
    5. Extending views with arguments
      10m 17s
    6. Extending views with relationships
      7m 2s
    7. Going further with relationships
      8m 23s
  7. 46m 40s
    1. Understanding geographic data
      4m 26s
    2. Setting up the Location module
      16m 20s
    3. Entering geographic data with the Location module
      10m 10s
    4. Displaying basic maps with the GMap module
      6m 43s
    5. Integrating the GMap module with Views
      9m 1s
  8. 54m 21s
    1. Exporting data in tabular form
      11m 25s
    2. Planning with the calendar modules
      11m 31s
    3. Using the Charts module and Google Charts
      7m 11s
    4. Graphing data with Open Flash Chart
      4m 50s
    5. Making important data pop out with tag clouds
      7m 46s
    6. Putting it all together in an attractive package
      11m 38s
  9. 36s
    1. Conclusion
      36s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
Drupal 6: Online Presentation of Data
6h 8m Intermediate Jul 01, 2009

Viewers: in countries Watching now:

Drupal's built-in data presentation tools offer several ways for web designers to clearly and attractively package their data. In Drupal 6: Online Presentation of Data, Tom Geller explains how Drupal handles data so users can set up intelligent structures and implement them with Drupal's Content Construction Kit. Tom also shows how a data-driven web site can improve its interactivity by using geographic data to connect real-world addresses to maps. Exercise files accompany the course.

Topics include:
  • Importing and manipulating data in Drupal
  • Presenting date-formatted information in calendars
  • Understanding Drupal's data-query interface, "Views"
  • Improving view appearances with grid, list, and table formatting
  • Importing, exporting, and cloning views
  • Extending views with arguments and relationships
Subjects:
Web CMS Web Development
Software:
Drupal
Author:
Tom Geller

Surveying other basic display settings in Views

This is going to be a fun video. We'll be looking at the options in Basic setting section that we haven't talked about yet. So, it's going to be a real grab bag of unconnected information. However, each individual setting is a real treat because they each give you a good deal of control over your data's appearance. First, let's talk about settings that are covered in other videos. The highlighted sections you see here were covered in the video about attaching more information to views. The light colored one here was covered in the view about adding view displays. This part was covered in the video about Grid, List and Table formatting and finally, this section about Access is in the video about controlling access to views. The best way to explain what the rest of all of these settings are is simply to demonstrate them.

I should mention that some of the options don't appear all the time and others might appear if you install additional modules. The first one that we'll discuss is a good example of this and to show these off, I'm going to apply them to the Page for family we created earlier. If we go back and take a look at the slide, we see that there is a Row style: Fields. However, that doesn't appear in this Page for family. That's because it only appears when your Style is Unformatted. I am going to override the default, update it and go back and change it to Unformatted and update it. Now, we see this Row style: Fields. If we click on that, we can see what our options are. The other option is Node. Let's try that, click on Update and it gives us a few options. I'm going to leave it in default. Again, we are just taking a quick look at all of our different options and then click on Update again.

Now, if we go down to our preview and look at our display for the page, we see that what it's actually doing is showing the node with its teaser. I'm now going to go back and switch that back to the default, Table, by going up here, click on Style, back to Table and Use default. Scroll down, Update default display and save. The next option is this Use AJAX. Right now it's set to No. I'm going to go to Page for family and click on it and change it to Yes. In this case, we are going to change it right back, so I won't bother overriding the default display. I'll make it Yes, Update default display and save. Now, let's go take a look at that page and see exactly what that means.

I'll view that in a new tab by using the right mouse button or holding down Ctrl on the Mac and Open in New Tab. Now, when we do certain things on the page such as resorting, the entire page doesn't have to reload. Drupal uses JavaScript in order to make this quicker. There are some disadvantages to using AJAX, however. It may affect the ability of search engines to search your site. Right now, we are just going to go back and change it so that AJAX is No again and scroll back up. The pager setting only makes sense when the items to display is smaller than the total number of your items in your database that are being displayed. In our case, it is. We have 11 or 12 items and we are only showing 10 here. I'm going to change that to 5 just to make it even more clear. Once again, I'm changing the default setting, but that's okay because we'll change it back.

So, we are going to display 5 items, and update the default display. Now, as you can see, we only see 5. But what happens if there are more than 5, there is no way to see the rest. If you turn the pager on, there is. We click on the link and scroll down and see several options. We'll turn on the Full pager first and then I'll show you the Mini pager. Update default display, take a look down here and that's what the pager does. It actually lets you go from page to page and go all the way back to the first one or the last one. The Mini display is not quite as flexible. Let's take a look. Use pager, change it to Mini pager, then Update default display. You scroll down to the bottom and you see it just lets you go very easily from page to page, but doesn't have those first and last options. Scroll up and turn off the pager and I'm also going to change the items to display back to 10. Just for safety, I'm going to save it at this point and go back to editing our view.

To show the next section, we have to switch to the Block. We already talked about Items to display and the pager. When you switch to a Block, however, there is no pager. Instead there is the option of a More link. If you specify that you do want a More link, then at the end of the number of items to display instead of saying go to the next page, it will say would you like to go to a certain page full of these things. The page that it will go to is this Link display, in our case, the Page for family. We can see this in action because we already made it that way in a different video, scroll down to our Block and there is our more link. If we click on that, it goes to the People page that we had also setup. This next setting, Distinct, is somewhat unusual and difficult to understand until you start building complex views. Sometimes you'll build a view where the same node will show up more than once. Generally speaking, you won't have to do this. You'll only have to do this if you start to notice problems of repeating nodes.

You generally shouldn't do it because it takes more database power in order to make it work and it will slow down your page load. So, we'll just cancel out of there for now. This next section is the Access link. We'll discuss that in the video about controlling access to views. The Exposed form in block setting is a bit complicated. We had another video about Surveying, Views, Sort, Filter and Field options and showed you how you can make views where the controls are available to visitors by exposing those controls. We are now going to create a filter based on taxonomy and expose it, so I can show you how this Exposed form in block thing works. We add the Filter, scroll down, choose Taxonomy and make it Taxonomy: Term. It will be a drop-down and again, we don't have to give too many details here, but we'll expose it and Update default display. Now, as you see, we have a control that a visitor to the site can use to show only friends, for example, or only people married into the family. But how does that Exposed form in block bit come in? Well, let's go up and we'll turn it from No to Yes and then Update default display. Now, we have to save it to show exactly how that works. What that did is was it moved the control into a block. We'll turn on that block now by going to Administer > Site Building and Blocks and scroll to the bottom for all of the blocks that are currently turned off. You'll see we have this exposed form that was created automatically by views and I'm going to turn it on here in the Right sidebar. We are going to turn it off again in a minute, but for now we'll just save it.

Now, if we go to that People page by going to localhost/people, we can now choose to show only friends from this block in the corner or only married people or so forth. I'm going to go back and remove that block because obviously it is making our main screen a lot narrower, but you can see how useful this is. You could have controls off to the side and let people see whatever they want in the middle of the screen. Before we do anything else though, let's turn off that block; Administer > Site Building > Blocks, scroll down to find it in the Right sidebar and turn it off and save.

Now if we go back to our view, which once again is easy to do if we go by localhost/people and up to our Edit link here, I'm going to get rid of that exposed filter and also turn off that Exposed form in block. All we need to do is scroll down, click Remove, scroll back up and change Exposed form in block, back to No and save once again. We just have one or two more things to show off. I'm going to go back to our view and take a look at the last little bit in these basic settings.

The Empty text setting lets you provide some information even through HTML if the view ultimately displays no hits. To demonstrate we'll have to make a few adjustments. We are going to go to Administer > Content management and Taxonomy, I'm going to add a term to this relationship to family, we'll say Enemy. I don't know why would one will list our enemies on a website for the family, but whatever. As you know, we just created that term so we have no people who are labeled as enemies. Let's go back to our view now by Administer > Site Building > Views.

Now I'm going to add a filter so that only enemies show. Once again that's a filter using Taxonomy: Term, Relationship to family as a drop-down and it has to be only people of the enemy term, Update and if we preview, we see that nothing happens. So, let's say Save and now go to that People page and see what happens. See, if you go to the page, it just appears blank which would cause some problems if you allow people to select empty set. They will say what happened here. So, let's go back and then in the empty text, we'll add just a little something saying, sorry nobody was found and update and save and then back to our page. Now, you see the empty text and indeed, since we put this into default, it shows up here both in the attachment and the block. Again, you have to test your site to make sure you don't have this sort of redundant information if you are using attachments.

Let's go back and edit and clean up after ourselves a little bit. We'll first get rid of that Taxonomy term by scrolling down and clicking Remove. I'm also going to get rid of that Empty text again just so that we keep the site clean, Update default display. And let's save that and make sure that our page and block look the way that we want. Well, that looks pretty good. On the left, our block looks pretty good, but somewhere along the way, we change this attachment, this one person who is featured into a Table view. You can tell because it has this little sort thing, which doesn't make any sense, and in fact, it sort of breaks our attachment.

If I click it, it gives me not the most recently added person, but the person I added first because it is sorting in the other direction. Let's go back and edit that attachment. Make sure that we override our Style, update it and go back up and switch it to Unformatted, Update and Save and make sure that it looks the way that we want. There it is. It looks a lot better. The very last section in this Basic settings area is Theme. It doesn't actually change your view at all, but instead provides valuable information for developers. That's a big subject and we'll touch on it a little bit in the video about altering your views appearance through CSS. And that's that. I warned you there would be a lot to learn in this video, didn't I? And as mentioned earlier, some modules introduce additional settings into this area.

Fortunately, the individual settings themselves tend to be fairly straightforward. Unlike adding a field which involves a three or four-step process, these settings generally only have only one or two switches. Learning what those switches are and where will give you some wonderful extra control over your Views.

Find answers to the most frequently asked questions about Drupal 6: Online Presentation of Data.


Expand all | Collapse all
please wait ...

Q: The exercise files for the course appear to be missing.

A: Full exercise files for this course were not provided because of the unusually large amount of images, modules, and other files that would have to be installed in specific places, in addition to the database. We hope to have a solution for future Drupal courses that installs all items in their correct places.

Q: During the course the author makes reference to being able to add data via the exercise files; however, the data is not in the exercise files.
A: During the recording of the title, some of the exercise files were removed, since the frequent updates to Drupal itself and to the modules that are needed to run the exercise files cause them to break.

The data referenced in the video consists mostly of names and addresses, which will need to be typed by hand.
 
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.
Upgrade now


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 Upgrade now

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 6: Online Presentation of 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 preferencesfrom 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

Notes cannot be added for locked videos.

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.