From the course: Drupal 7 Essential Training

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Creating views

Creating views - Drupal Tutorial

From the course: Drupal 7 Essential Training

Start my 1-month free trial

Creating views

You might remember that in an earlier video we set up a page of links to all the products that our fictional olive oil company sells. If you've been following along, it's at /edible-oils or you could get there by going down to this link here and clicking Edible Oils. The problem with this page is that it's just a node and we have to update it manually every time we add a product. By the end of this video we'll have set up a view that automatically displays and updates this page. But first we have to understand our data. I'll go up to Content and then filter so that we only see our products, and I see that we have four of them already. I'll click on one of them and then Edit, just so we could see the structure. Okay, so there's a Title, there is an SKU and a Price. Those are two custom fields we added. Product description where the body would usually go and a photo. Okay, good, so we have an idea what we're talking about. Now let's create our view. To do so, go up to Structure and then…

Contents