Field grouping
Time for some more tricky Views exercises! (And more interesting settings.) In the first exercise in this chapter, you should create a list of products on the site – and have the products in the same category grouped together.
Welcome to NodeOne’s Drupal learning library! Use the settings below if you want to search the library for episodes and exercises, or just dive right in. You can get notifications on new content by following the learning library RSS.
Time for some more tricky Views exercises! (And more interesting settings.) In the first exercise in this chapter, you should create a list of products on the site – and have the products in the same category grouped together.
In this exercise, you're asked to create a list of user accounts instead of nodes (content). There should be a table of all administrators on the site, displaying their real name and their phone number. Sort by real name.
This is a little bit more tricky exercise, since it uses some unusual settings, but it also shows how you with small tweaks can get really useful functionality (and how good it is to know that these settings exist).
In the fourth exercise in this chapter, you're asked to add an RSS feed for press releases, and have it attached to both the block and the page list. You should also make sure that the RSS version of press releases looks good.
In this exercise you are to change how the block with the latest press release is displayed, and show individual fields instead of the press release teaser. The block should contain:
The second exercise is to extend the press release list with a block, displaying only the latest press release on the site. This block should be visisble in a region of your choice, and also link to the full list (page) of press releases created in the previous exercise.
In this first Views exercise, you are asked to build a list of press releases on your site. The list should have the following properties:
Views is an essential module to learn if you want to use Drupal. I'm not kidding. If you don't know Views, then you'll spend countless hours of reinventing the wheel -- probably with less useful result.
This chapter collects a number of exercises for getting started with Views.
In the last exercise in this chapter, we allow press releases to have any number of related product. (This should preferrably be done by using a reference field.) Make sure that the related products are shown when viewing the press release.