views mini course 2 indetail 130509163314 phpapp01
TRANSCRIPT
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
1/76
Drupal 7 - Building
flexible views!acquia.com
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
2/76
Heather JamesManager of Training at Acquia
HELLO!
@learningdrupal
@hjames
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
3/76
Acquia Training
http://training.acquia.com
Wednesday, May 8, 2013
http://training.acquia.com/http://training.acquia.com/http://training.acquia.com/ -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
4/76
Course materials
Tested in hundreds ofclassrooms.
Continuously updated.
Clear and easy follow, but
engaging content.
Blend of guided andchallenge exercises to
test skills.
http://training.acquia.com/courses
Wednesday, May 8, 2013
http://training.acquia.com/courseshttp://training.acquia.com/courseshttp://training.acquia.com/courseshttp://training.acquia.com/courses -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
5/76
The trainers are partners
Our trainers areexperienced developerswho love teaching.
They provide subject
matter expertise as wellas well as passion for thetopic.
Partners are placed all
over the globe.
http://training.acquia.com/testimonials
Wednesday, May 8, 2013
http://training.acquia.com/testimonialshttp://training.acquia.com/testimonialshttp://training.acquia.com/testimonialshttp://training.acquia.com/testimonials -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
6/76
Popular packages are typical examples of the tailoredpackages we have delivered.
Tailored courses available
http://training.acquia.com/events
Wednesday, May 8, 2013
http://training.acquia.com/courseshttp://training.acquia.com/courseshttp://training.acquia.com/courseshttp://training.acquia.com/courses -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
7/76
In todays webinar!
Viws mini course- May 2nd: Introduction to Views
- May 8th: How to build flexible views < -- you are here
- May 15th: Build your first module to back up your views!
Drupal essentials
- May 22nd: Drupal Essentials: How to Configure Accounts in Drupal
Drupal for Project Managers mini-course
- May 29th-June 19th: 4 weeks - Drupal for Project Managers!
Adam Boysen, Jakub Suchy, Amye Scavarda, Jenn Sramek
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
8/76
What were doing today
Building flexible views Using relationships to expand selection
Using attachments
Using contextual filters Best practices to finish your view
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
9/76
What you need to know already!
How to add content How to customize content types (add fields)
What modules are
How to install and configure modules
From last week: How Views works, how to add a new
View
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
10/76
BUILDING FLEXIBLE
VIEWS
Finding your way around
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
11/76
Recap last class
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
12/76
Notesfrom last session
https://www.acquia.com/blog/totally-
beginner-tutorial-views-drupal-7
http://j.mp/acquiaviews1
Wednesday, May 8, 2013
https://www.acquia.com/blog/totally-beginner-tutorial-views-drupal-7https://www.acquia.com/blog/totally-beginner-tutorial-views-drupal-7http://j.mp/acquiaviews1http://j.mp/acquiaviews1https://www.acquia.com/blog/totally-beginner-tutorial-views-drupal-7https://www.acquia.com/blog/totally-beginner-tutorial-views-drupal-7https://www.acquia.com/blog/totally-beginner-tutorial-views-drupal-7https://www.acquia.com/blog/totally-beginner-tutorial-views-drupal-7 -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
13/76
Recap
What do you want to select?
Select base table to start (you can combine
tables with relationships).
Apply filters
Select fields or view mode
Where and how should it appear?
Choose a format such as list, table, etc.
Choose a displaysuch as pages, blocks,
RSS feeds. More displays available!
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
14/76
Step by step workflow
1. Choose what to query
2. Limit selection with filters and/or by fields
3. Select and configure formatting
4. Choose displays - and/or add attachments
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
15/76
Views is a query builder
Click to create queries with Views.
Filters to limit selection can be static or
contextual.
You can see the actual query written.
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
16/76
Views UI in detail
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
17/76
Views wizard
Page or blockDisplay settingsAdd to menu
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
18/76
Views wizard
Page or blockDisplay settingsAdd to menu
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
19/76
Views wizard
Page or blockDisplay settingsAdd to menu
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
20/76
Views editor
How to format & displayWhat to select & filter
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
21/76
Start by filtering selection
What to select & filter
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
22/76
How and where to display
How to format & display
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
23/76
Format and display
Controlling display
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
24/76
Jump menu
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
25/76
Table formatting
Customize labels - the column headers
Make columns sortable
Add links to edit for administrators
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
26/76
Be consistent
Look at how things are done across your site
Example: If adding admin views, follow order
of fields in core Drupal
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
27/76
Frequent formatting?
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
28/76
Site wide formatting!
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
29/76
Think reusability!
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
30/76
View modes?
Use the default view modes
Display Suite - to create custom modes
These are reusable, easier to manage across
many views.
Easier for theming!
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
31/76
Manage display
Example: Thumbnail in teaser Example: Full content image
Control view modes
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
32/76
Image styles available
Add an image style
Configure display on a content type
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
33/76
Think first
Consistency!
Reusability!
Who can access it?
What can they do?
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
34/76
Access control
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
35/76
Access restrictions
By permission is easier to manage in future
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
36/76
Filters
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
37/76
Filters
Expose filters to users
Use permissions on a view
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
38/76
Demo: Exposed filter
Review existing view: Content by user
Expose filter to viewers (add another)
Insert an edit link for admins
Change access control of View
Path: /admin/content/user
Wednesday, May 8, 2013
http://delicious1.localhost:8082/admin/structure/views/nojs/display/content_by_user/page/pathhttp://delicious1.localhost:8082/admin/structure/views/nojs/display/content_by_user/page/path -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
39/76
Pagers
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
40/76
Pagers
Decide if you need pagers.
Use Ajax loading for sidebars (demo)
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
41/76
Inifite scroll?
Views Infinite Scrollhttp://drupal.org/project/views_infinite_scroll
Wednesday, May 8, 2013
http://drupal.org/project/views_infinite_scrollhttp://drupal.org/project/views_infinite_scroll -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
42/76
Attachments
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
43/76
Views attachments
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.
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
Articles
Adventurous appetites?
Budget minded plans
Outdoorsy types
Airlines competing for new customers
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
44/76
Demo
Look at an attachment to an existing view.
Uses offset.
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
45/76
Relationships
Wednesday, May 8, 2013
d f h bl
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
46/76
Get data from other tables
Wednesday, May 8, 2013
l l d
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
47/76
Example: related content
Job listing contains an Entity reference to CompanyWednesday, May 8, 2013
D
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
48/76
Demo
Add a new view listing users
Change to field display
Check the field options available. Add user
image.
Add a relationship to content written.
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
49/76
Contextual filters
Wednesday, May 8, 2013
C l fil
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
50/76
Contextual filters
Display related content across the site
Wednesday, May 8, 2013
E l
https://www.acquia.com/about-us/team/heather-james -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
51/76
Example
https://www.acquia.com/about-us/team/heather-jamesWednesday, May 8, 2013
D
https://www.acquia.com/about-us/team/heather-jameshttps://www.acquia.com/about-us/team/heather-jameshttps://www.acquia.com/about-us/team/heather-jameshttps://www.acquia.com/about-us/team/heather-james -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
52/76
Demo
Add a block view Pull in user ID
Select, sort and format content
Place the block!
Look at related recipes example.
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
53/76
Add links to menus
Wednesday, May 8, 2013
Addi
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
54/76
Adding menus
You can add a link to your view anywhere inyour menus.
You can create menus within a set of views!
Wednesday, May 8, 2013
M il bl
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
55/76
Menus available
Wednesday, May 8, 2013
Add t b
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
56/76
Add as menu tab
Wednesday, May 8, 2013
A tti
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
57/76
Access settings
Wednesday, May 8, 2013
T b !
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
58/76
Tab appears!
Wednesday, May 8, 2013
D
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
59/76
Demo
How to add a menu itemAdd my recipes to main menu.
Add a parent menu item and sub-menu items
Look at a live version on our training site In
D6)
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
60/76
Contributed modulesthat love Views
Wednesday, May 8, 2013
Vi l t d d l
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
61/76
Views related modules312 Drupal 7 modules http://j.mp/Y2cy6R
Wednesday, May 8, 2013
C l d
http://j.mp/Y2cy6Rhttp://j.mp/Y2cy6Rhttp://drupal.org/project/calendar -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
62/76
Calendar
http://drupal.org/project/calendarWednesday, May 8, 2013
with jQ er
http://drupal.org/project/calendarhttp://drupal.org/project/calendarhttp://drupal.org/project/calendarhttp://drupal.org/project/calendarhttp://www.webomelette.com/10-drupal-views-modules -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
63/76
with jQuery
http://www.webomelette.com/10-drupal-views-modulesWednesday, May 8, 2013
Example: Slideshow
http://www.webomelette.com/10-drupal-views-moduleshttp://www.webomelette.com/10-drupal-views-moduleshttp://www.webomelette.com/10-drupal-views-modules -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
64/76
Example: Slideshow
Wednesday, May 8, 2013
Adds a format & options
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
65/76
Adds a format & options
Wednesday, May 8, 2013
Views for admins
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
66/76
Views for admins
Admin Viewshttp://drupal.org/project/admin_views
Overrides all admin pages with Views!
Views bulk operations
http://drupal.org/project/
views_bulk_operations
Provides a display format and editing options
such as changing author or field values
Wednesday, May 8, 2013
Workbench
http://drupal.org/project/views_bulk_operationshttp://drupal.org/project/views_bulk_operationshttp://drupal.org/project/views_bulk_operationshttp://drupal.org/project/views_bulk_operationshttp://drupal.org/project/views_bulk_operationshttp://drupal.org/project/admin_viewshttp://drupal.org/project/admin_viewshttp://drupal.org/project/workbench -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
67/76
Workbench
http://drupal.org/project/workbenchWednesday, May 8, 2013
Demo: VBO
http://drupal.org/project/workbenchhttp://drupal.org/project/workbenchhttp://drupal.org/project/workbench -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
68/76
Demo: VBO
If time allows! Demo modifying a view to add views bulk
operations.
Add to the Content by user list.
Add a "Bulk operations" field, available to all
entity types. Configure the options available
Wednesday, May 8, 2013
Configure VBO
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
69/76
Configure VBO
Add field and selection options available
Wednesday, May 8, 2013
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
70/76
VIEWS NEXT STEPS!
Your assignment
Wednesday, May 8, 2013
Your assignment
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
71/76
Your assignment
Last week you made a view, right? This week:
Add a display with an attachment
Make a contextual filter or use a
relationship
Add a link to your menu
Watch tutorials 4 parts, 5 mins each!
http://www.drupalgardens.com/content/new-
views-tutorials-4-part-intro
Wednesday, May 8, 2013
Views webinar!
http://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-intro -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
72/76
Views webinar!
Tips and Tricks for Getting the Most Out ofViews [April 30, 2013]
http://j.mp/mostviews
Suzanne Kennedy, Evolving Web - one of ourtraining partners.
http://training.acquia.com/events/canada
DrupalCon: Mastering Views Configuration
http://portland2013.drupal.org/node/3718
Wednesday, May 8, 2013
Views tutorials
http://portland2013.drupal.org/node/3718http://training.acquia.com/events/canadahttp://j.mp/mostviewshttp://portland2013.drupal.org/node/3718http://portland2013.drupal.org/node/3718http://training.acquia.com/events/canadahttp://training.acquia.com/events/canadahttp://j.mp/mostviewshttp://j.mp/mostviewshttp://j.mp/Zc8nEO -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
73/76
Views tutorials
Quick version: 4 parts, 5 minseach!
http://
www.drupalgardens.com/
content/new-views-tutorials-4-part-intro
Drupalize.me
http://drupalize.me/videos/
overview-views
10 part series with Toronto
Web Developer
htt :// .m /Zc8nEOWednesday, May 8, 2013
Next up!
http://j.mp/Zc8nEOhttp://drupalize.me/videos/overview-viewshttp://drupalize.me/videos/overview-viewshttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://j.mp/Zc8nEOhttp://j.mp/Zc8nEOhttp://drupalize.me/videos/overview-viewshttp://drupalize.me/videos/overview-viewshttp://drupalize.me/videos/overview-viewshttp://drupalize.me/videos/overview-viewshttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-introhttp://www.drupalgardens.com/content/new-views-tutorials-4-part-intro -
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
74/76
Next up!
Viws mini course- May 2nd: Introduction to Views
- May 8th: How to build flexible views < -- you are here
- May 15th: Build your first module to back up your views!
Drupal essentials
- May 22nd: Drupal Essentials: How to Configure Accounts in Drupal
Drupal for Project Managers mini-course
- May 29th-June 19th: 4 weeks - Drupal for Project Managers!
Adam Boysen, Jakub Suchy, Amye Scavarda, Jenn Sramek
Wednesday, May 8, 2013
Next week:
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
75/76
Next week:
Views Quality Assurance Theming Views
Caching and performance tips
Build a module to back up your view!
Wednesday, May 8, 2013
Events! Learn in person
-
7/27/2019 Views Mini Course 2 Indetail 130509163314 Phpapp01
76/76
Events! Learn in person
http://acquia.com/events
http://training.acquia.com/events
http://dublin2013.drupaldays.org/
http://www.drupical.com/
http://www.drupical.com/http://dublin2013.drupaldays.org/http://www.drupical.com/http://www.drupical.com/http://dublin2013.drupaldays.org/http://dublin2013.drupaldays.org/http://training.acquia.com/eventshttp://training.acquia.com/eventshttp://acquia.com/eventshttp://acquia.com/events