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
Watching:

Migrating custom fields from Drupal 6


From:

Drupal 7: Reporting and Visualizing Data

with Tom Geller

Video: Migrating custom fields from Drupal 6

I'm going to guess that some of you watching this course already have experience with Drupal 6. Maybe you have a Drupal 6 site already built, and you want to see how to move it from the old data storage model to Drupal 7's new one. If so, this video is for you. It'll be quite different from all the others in this course, because we'll start off with the same employee database we've been seeing, but this time in a Drupal 6 site. I'll then show you what it looks like after a standard upgrade to Drupal 7, but you'll notice that none of our custom fields appear. But don't worry; we'll finally do some special procedures to bring everything up to date.
Expand all | Collapse all
  1. 13m 51s
    1. Welcome
      50s
    2. What you need to know
      4m 50s
    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 43s
    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 50s
    8. Migrating custom fields from Drupal 6
      3m 58s
  4. 20m 47s
    1. Connecting two fields using references
      5m 36s
    2. Importing data using Feeds
      8m 48s
    3. Changing the appearances of fields
      6m 23s
  5. 53m 11s
    1. Understanding why views are useful
      5m 1s
    2. Learning from built-in views
      5m 52s
    3. Creating and deleting a simple view
      5m 42s
    4. Diving into the Views interface
      8m 43s
    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

please wait ...
Watch the Online Video Course Drupal 7: Reporting and Visualizing Data
4h 24m Intermediate Nov 17, 2011

Viewers: in countries Watching now:

In this course, author Tom Geller demonstrates how to use the Views module and other add-ons in Drupal to present dynamic, data-rich content. This course examines several real-world examples of effective data visualization and describes the Drupal data-storage model. The course also shows how to create, format, and style views; control access to data; improve data administration with Views Bulk Operations; and display content as custom maps and slide shows.

Topics include:
  • 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
Subjects:
Developer Web
Software:
Drupal
Author:
Tom Geller

Migrating custom fields from Drupal 6

I'm going to guess that some of you watching this course already have experience with Drupal 6. Maybe you have a Drupal 6 site already built, and you want to see how to move it from the old data storage model to Drupal 7's new one. If so, this video is for you. It'll be quite different from all the others in this course, because we'll start off with the same employee database we've been seeing, but this time in a Drupal 6 site. I'll then show you what it looks like after a standard upgrade to Drupal 7, but you'll notice that none of our custom fields appear. But don't worry; we'll finally do some special procedures to bring everything up to date.

There are no exercise files for this video, because you'd have to go through quite a lot of trouble to follow along at home. But it should be clear just from watching. First, here's our Drupal 6 site and you'll notice it looks sort of familiar. When you click on a title, we get the data for any one of our employees and so forth. We've simplified it a little bit by adding only a few fields. Now here's the Drupal 7 equivalent. But if you click on one of these titles, you'll see that actually there are no other fields, it's only the title. Don't worry; we'll be exposing all the other data.

It did come over in the migration, but it's just not showing up yet, because there's different data storage models between Drupal 6 and Drupal 7. Incidentally, the way that I brought this over was I simply created a brand-new copy of Drupal 7 and then imported the Drupal 6 database. Then I ran Drupal's update.php script. In order to bring it up to date, we're going to go up to Structure, and Content types. Then we'll take a look at our Employee Content type and manage fields. And indeed we don't have any of the fields that we expect.

We have only the title, none of the custom ones that we created. In order to convert it over, we'll look at some instructions that I found on drupal.org. The location is drupal.org/ node/1144136. And there it is. The important part of this page is this Upgrade Steps. And the most crucial part of that is that you need a certain module, the CCK module. You might remember that that's how we actually got those custom fields into Drupal 6. Well, in order to do the migration, you also need it in Drupal 7. So we'll go to it.

It's at drupal.org/project/cck. I'll Ctrl+Click to open that in a new tab. I scroll down, and as usual, I download the latest version. Notice that for Drupal 7 there's only a Development release. Well, you take what you can get, so I'll take the .gz file, copy its link location, go back to my site, and install it in the usual way. Click Modules, Install new module, paste, and Install, and then enable the correct parts of the module.

As we scroll down on the page, we see a CCK group. It includes CCK, but also this thing, Content Migrate. That's the part that will help us, and Save configuration. The next thing to do is to go to Structure and Migrate fields. We want to migrate all of our fields, so I'll all click this check box at the top, and then click Migrate selected fields. This may take a while.

Now if we go back up to our Content type by clicking Structure, Content types, and manage fields next to Employee, we see that our fields are there. If we go back to the front page of our site and we click on any one of these, we're all good once again. So those are the basic steps. There are several special cases you need to know if you're converting a complex Drupal 6 site. For example, you'll need extra modules to migrate reference fields, field-based content permissions, or field groups. The details once again are on this page on drupal.org, at drupal.org/node/1144136.

There are currently no FAQs about Drupal 7: Reporting and Visualizing Data.

 
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

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

Upgrade to View Courses Offline

login

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 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 ?

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.

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 lynda.com 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.

Start your FREE 10-day trial

Begin learning software, business, and creative skills—anytime,
anywhere—with video instruction from recognized industry experts.
lynda.com provides
Unlimited access to over 4,000 courses—more than 100,000 video tutorials
Expert-led instruction
On-the-go learning. Watch from your computer, tablet, or mobile device. Switch back and forth as you choose.
Start Your FREE Trial Now
 

A trusted source for knowledge.

 

We provide training to more than 4 million people, and our members tell us that lynda.com helps them stay ahead of software updates, pick up brand-new skills, switch careers, land promotions, and explore new hobbies. What can we help you do?

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.