3. Getting to know you...
• Ever manage a large site in HTML only?
• What other frameworks or CMSs have you
used?
• Ever use a custom CMS?
• Ever build your own CMS?
• What challenges did you find?
4. About us
• Drupal consulting,
development, and training
• Founded in 2007 by Alex and
Suzanne
• Help organizations build
awesome Drupal websites
with custom functionality
15. 1. Choose what to query
Content Users Taxonomy Comments
Content title D. Schrute
adventure Wow, can't
Germany city breakwait to get
dwight
city break 8 Sept visit.
J. Halpert
Spain sailing
joe Me too!
shopping 8 Sept
16. 2. Filter to Limit selection
• Limit a set of data to display
Title Type Author
Beppu City guide Eddie
Lost luggage Article Jill
FAQ Basic page Joe
Paris City guide Susan
What we do Basic page Saba
About us Basic page Saba
17. 2. Filter to Limit selection
• Another example, filtering by author.
Title Type Author
Beppu City guide Eddie
Lost luggage Article Jill
FAQ Basic page Joe
Paris City guide Susan
What we do Basic page Saba
About us Basic page Saba
18. 2. Filter to Limit selection
• ... or limit by content type
Title Type Author
Beppu City guide
City guide Eddie
Lost luggage Article Jill
FAQ Basic page Joe
Paris City guide
City guide Susan
What we do Basic page Saba
About us Basic page Saba
20. 4. Choose a display
Web Page Title
http://example.com/city-guides Google
Page
display
(banner)
City guides Sign up
Beppu name
Far far away, behind the word mountains, far from the countries Vokalia and
Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at
the coast of the Semantics, a large language ocean.
email
Block
display
Button
Paris
Far far away, behind the word mountains, far from the countries Vokalia and
Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at
City guides by topic
the coast of the Semantics, a large language ocean. Budget
City break
Mali Family
Far far away, behind the word mountains, far from the countries Vokalia and
Luxury
Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at Sun and sea
the coast of the Semantics, a large language ocean.
22. Contextual filter
• example.com/user/102 or example.com/member/eddie
• Where are we on the site? What path?
Eddie
Eddie likes to travel with his mandolin. Or sometimes the
ukelele. In a pinch, he'll travel with just his tambourine.
By this contributor...
Best in Beppu
Far far away, behind the word mountains, far from the countries Vokalia and
Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at
the coast of the Semantics, a large language ocean.
Paris excursions
Far far away, behind the word mountains, far from the countries Vokalia and
Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at
the coast of the Semantics, a large language ocean.
Mali music
24. Our example
• When viewing a course with the term
“Philosophy...” it should display other
content with the same term.
• Build each view per term? No.
• Use “Contextual filter” to pull in the related
content”.
25. Unit 1.3 - Exercise
• Display related content across the site
• Learn about ways to extend views.
41. Modules for Filtering
• Better Exposed Filters
• Provides more options for exposed filters
• Views Dependent Filters
• Exposed filters that show up when a
particular option is selected
• Date Views
• Filters based on date fields
43. Views Relationships
• Join a Views result to a related record, so you
can show fields from that record
• Examples:
• The author of a node
• A related node, linked to with an entity
reference field
• The translation of a node
44. Add Relationship to an
Instructor Node
Course Instructor
Course Title Name
Department Field Specialty Field
Course No. Field Entity Reference
Instructor Field