Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now

Importing and manipulating data

Importing and manipulating data provides you with in-depth training on Web. Taught by Tom Geller as … Show More

Drupal 6: Online Presentation of Data

with Tom Geller

Video: Importing and manipulating data

Importing and manipulating data provides you with in-depth training on Web. Taught by Tom Geller as part of the Drupal 6: Online Presentation of Data
Expand all | Collapse all
  1. 13m 21s
    1. Welcome
      1m 12s
    2. Reviewing requirements
      3m 35s
    3. Using the exercise files
      3m 36s
    4. Touring examples of data visualization
      4m 58s
  2. 27m 55s
    1. Planning data structure
      8m 26s
    2. Importing and manipulating data
      6m 39s
    3. Looking at Drupal's database
      6m 13s
    4. Deciding whether to store personal data as nodes or users
      6m 37s
  3. 1h 12m
    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 32s
    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 48s
    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 32s
  6. 55m 0s
    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 9s
    6. Extending views with relationships
      7m 2s
    7. Going further with relationships
      8m 23s
  7. 46m 39s
    1. Understanding geographic data
      4m 25s
    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

please wait ...
Importing and manipulating data
Video Duration: 6m 39s 6h 8m Intermediate


Importing and manipulating data provides you with in-depth training on Web. Taught by Tom Geller as part of the Drupal 6: Online Presentation of Data

View Course Description

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

Importing and manipulating data

Technically speaking Drupal is a front-end display system for a back-end database. Throughout this course, we are going to be looking at the data as it resides in a MySQL database, which is the most common one to use with Drupal. You can manipulate that database in many ways such as, for example, through a command line interface or a platform specific SQL program, but we are going to use the web-base phpMyAdmin program that's included with both WAMP for Windows and MAMP for Mac and you have probably installed it to get Drupal running on your computer. I should mention that the database doesn't have to be MySQL. It could be PostgreSQL or Microsoft IIS and when Drupal 7 appears in late 2009 or early 2010, those database options will expand enormously.

But for now, we are going to look once again at MySQL using phpMyAdmin. We are assuming that you already have Drupal up in running. All you need is the basic Drupal installation. You can learn how to install Drupal in the series Drupal Essential Training also from I also want to mention that whenever you use the exercise files or with this course on a disc the username is admin, a-d-m-i-n and the password is booth, b-o-o-t-h. Let's not talk about the database specifically but rather how to get data into it. There are basically four ways. The first way is through Drupal itself. This is the method that you undoubtedly already know and I'll show you how to do it now. Here we have our basic Drupal installation we have just created it.

To create content it's very simple. We go over to Create content. Click on the link. We are going to create a page, so we click on Page and fill in the form. I'm going to make this say "Hello, world!" "It's good to be here!" Scroll down to the bottom. I usually check my Publishing options and let's make this Promoted to the front page and say Save. Good. Now if we go back to our homepage, we see that there is our note that we have just created and if we click on it we could then go back and change it. Again, this is the simplest and most straightforward way of getting information into Drupal.

The problem with it is obviously you can only do one thing at a time. So we are also going to talk about some ways of bringing in a lot of information that you have in another system. One of those ways of bringing in more than one piece of information at once is by putting it directly in the database using phpMyAdmin or some other SQL program. This is something you should only do if you are absolutely sure that you know what you are doing and even then experience Drupal developers cringe when they see someone putting in data directly into the database because it bypasses Drupal's stability and security processes and the chances are very, very high that you will completely break your installation this way.

Don't worry! We'll show you a couple of better ways in a minute, but there are times when a quick and dirty SQL command is safe and convenient, so it's good to know that it's possible. To insert data using phpMyAdmin, you would first go to the program, click on your database in this case it's called "lynda" and find the table that you want to insert data into. Let's just pretend that we are going to insert something into role. We want to add a new kind of user role. Our browser just sees what's there and you see the two that are already built into Drupal, the anonymous user and the authenticated user.

If we wanted to add a role, we could do so using this Insert command or using the SQL command and then typing in the SQL command that was necessary to add or change a role there. Again this is very dangerous to do and I would only recommend changing information in the database if you really know what you are doing. So let's move on to a third method. You could also get information into Drupal using Drupal's API that's the Application Programming Interface. You would create a program usually in PHP that would talk to Drupal in the way that Drupal is used to. Now I have to admit, a few months ago I spent a week writing a big data import project using just SQL. I knew it was possible to do by writing a PHP program, but I'm not a programmer and I only know the smallest amount of PHP programming language. So I brought in all this data using SQL and I ran into all sorts of problems because as I say, bringing data and using SQL is not as easy as it sounds. There's a lot of dependencies within Drupal that only become clear if you bring the data in using one of the ways that Drupal understands and then it all works.

However, I was fortunate to find an article online written by somebody at the company Acquia and here it is, Migrating the Drupal way. It's a series and right now as I speak there's four parts of the series, but more maybe coming. But in the first part, if you scroll down a bit, it explains exactly how you can write such a program and gives you the code for a simple program to create a note. This is excellent if you already have a large database full of information that you need to bring into Drupal. Just find a way to export that data so that it fits into this program and bring it in one big PHP file. If you want to do more with Drupal's API, there are several resources that will help you.

The first one is this contributor's guide which you will find it contributors-guide on the website. It explains some of the procedures and thus practices for programming in Drupal and the links here will help you a great deal. Possibly the most important link there is to the Drupal API itself. The Drupal API is located at Here you will find a list of all of the commands that Drupal understands natively. These commands will let you program Drupal in way that it understands. As they say in the community, "It's the Drupal way." Finally, there are numerous modules to help you move and change data in a Drupal site. Two of the biggest and best known are called node import and user import. These modules are always in flux. If you want to use a module, look through the import and export section on module directory to see if there is one that fits your needs. You can find that directory by going to, clicking on Modules and then scroll down into this group of categories here, until you see Import/ export. Click there. Make sure you filter according to whichever version of Drupal you are using, in our case that's 6, and there you have it. Now you have a long list of modules that you could look through and decide which is best for you.

When you are learning Drupal, it's easy to forget how it's used in the real world, where you are often creating a site from data that came some outside source like business records or even another content management system. Your data presentation is only as good as the data itself. I hope this video helps you to move that data into Drupal, so you can start making it look great.

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.





Don't show this message again
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

* Estimated file size

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


You have completed Drupal 6: Online Presentation of Data.

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


Upgrade to View Courses Offline


With our new Desktop App, Annual Premium Members can download courses for Internet-free viewing.

Upgrade Now

After upgrading, download Desktop App Here.

Become a Member and Create Custom Playlists

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

Get started

Already a member?

Log in

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:

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.

You started this assessment previously and didn’t complete it.

You can pick up where you left off, or start over.

Resume Start over

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.

Sign up and receive emails about 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

Sign up and receive emails about 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.