SlideShare a Scribd company logo
1 of 44
WWrraappppiinngg VViieewwss 
aarroouunndd yyoouurr ffiinnggeerrss 
1
2 
DDeennnniiss SSoolliiss 
 SSoolliiss MMeeddiiaa GGrroouupp 
 OOvveerr 2200 yyeeaarrss ooff aapppplliiccaattiioonn ssooffttwwaarree ddeevveellooppmmeenntt.. 
 22 yyeeaarrss ooff DDrruuppaall ddeevveellooppmmeenntt 
 AAssssiissttiinngg wwiitthh DD88 MMiiggrraattiioonn iinn ccoorree 
 dd..oo.. :: ddeennssoolliiss 
 iirrcc:: ##ddrruuppaall--fflloorriiddaa && ## ddrruuppaall--mmiiggrraattee:: ddeennssoolliiss 
 sskkyyppee:: ddeennssoolliiss..aaooll..ccoomm
Dennis Solis 
BBoorrnn aanndd rr aaiisseedd iinn SSFF 
3 
LLiivvee iinn CCooccooaa,, FFlloorriiddaa
UUHHKK SSuuggggeessttiioonnss ffoorr VViieewwss 
 NNaammee ccoonntteenntt ttyyppeess iinn ssiinngguullaarr 
 NNaammeess vviieewwss iinn pplluurraall 
 IInncclluuddee nnooddee ttyyppee iinn ffiieelldd nnaammee EExxaammppllee ((11)) 
 EEaassiillyy ffiinndd ffiieelldd iinn vviieewwss lliisstt ooff ffiieellddss.. 
 IIff uussiinngg mmuullttiippllee vviieewwss:: 
 ““AAllll ddiissppllaayyss”” vvss ““tthhiiss ppaaggee”” 
 SSttrruuccttuurree -->> VViieewwss -->> SSeettttiinnggss 
 SShhooww tthhee SSQQLL qquueerryy 
 MMaakkee iinnppuutt rreeqquuiirreedd BBEEFFOORREE vviieewwss rruunnss.. 4
UUHHKK SSuuggggeessttiioonnss ffoorr VViieewwss 
 PPaaggee vviieewwss wwiitthh ssaammee ppaatthh.. 
 BBaadd –– oonnllyy oonnee vviieeww wwiillll aappppeeaarr iinn tthhee mmeennuu 
 GGoooodd –– iiff tthhee ddiiffffeerreenntt vviieewwss hhaavvee ddiiffffeerreenntt rroollee 
ppeerrmmiissssiioonn,, yyoouu ccaann hhaavvee mmuullttiippllee vviieewwss uunnddeerr oonnee 
mmeennuu iitteemm –– aanndd rroollee aapppprroopprriiaattee vviieeww wwiillll aappppeeaarr.. 
 WWiitthh vviieewwss aaggggrreeggaattiioonn –– ddoo nnoott ssoorrtt tthhee ddaattaa.. 
LLeett tthhee aaggggrreeggaattiioonn ddoo iitt.. 
 DDoonn’’tt ffoorrggeett ttoo ppuutt iinn NNoo RReessuullttss mmeessssaaggee iinn 
yyoouurr vviieeww.. 
5
VViieewwss 
TTooppiiccss Modules 
Contextual Filter views, ctools 
Views Relationship views, ctools 
Aggregation views, views aggregator 
6
VViieewwss 
IIff TTiimmee 
TTooppiiccss Modules 
Views conditional views_conditional 
Download views_data_export 
Relationship entity reference, entity 
entity connect 
7
YYoouu aarree aallll eexxppeerrttss iinn 
Contextual filters 
Relationships 
Aggregation 
8
What is a 
contextual filter? 
 Basically a contextual filter is simply a way of 
limiting what information you displayed to the 
user. 
9
Why? 
 Help your users focus on items for which they 
are search. 
 Limit what data the user see. 
10
How could you possible be a 
CONTEXTUAL FILTER 
expert? 
11
CCoonntteexxttuuaall FFiilltteerr 
12
CCoonntteexxttuuaall FFiilltteerr 
13
CCoonntteexxttuuaall FFiilltteerr 
14
CCoonntteexxttuuaall FFiilltteerr 
15
CCoonntteexxttuuaall FFiilltteerr 
EExxaammpplleess 
 Courses on a restaurant’s menu 
 Bad Camp sessions 
 Airline reservations 
 Filter by product types on Amazon or E-Bay 
16
CCoonntteexxttuuaall FFiilltteerrss 
SSaammpplleess 
 RReessttaauurraanntt MMeennuu EExxaammppllee ((22)) 
 SSoonnss ooff AAmmeerriiccaann VVeetteerraannss 
17
WWhhaatt iiss aa rreellaattiioonnsshhiippss?? 
User Author’s Name 
18 
Content 
Menu category 
•Starters 
•Appetizers 
Image 
Content type 
(taxonomy)
Why? 
 You want to maintain a single copy / instance of 
your data. 
 Your web site reference the single copy / 
instance of your data. 
 If you change the data, it is changed through out 
the web site. 
19
How could you possible be a 
RELATIONSHIP 
expert? 
20
RReellaattiioonnsshhiippss 
 Because of the relationship, you know some things 
about the other person. 
21
RReellaattiioonnsshhiippss 
User Author’s Name 
22 
Content 
Menu category 
•Starters 
•Appetizers 
Image 
Content type 
(taxonomy)
RReellaattiioonnsshhiippss 
 Author / user create a content node 
 An image is associated with a content node 
 A taxonomy term associated with a content node 
 Another entity associated with a content node 
23
RReellaattiioonnsshhiipp // SSQQLL VViieeww 
 INNER JOIN: 
 Returns all rows when there 
is at least one match in 
BOTH tables. 
 LEFT JOIN: 
 Return all rows from the left 
table, and the matched rows 
from the right table. 
24
RReellaattiioonnsshhiippss 
CT – Menu Item 
25 
CT – Customer Survey 
CT – Customer Order 
CT – Wait staff 
CT - Menu section
How do you create a 
relationship? 
 Setup a field as an entity reference EExxaammppllee ((33)) 
26
RReellaattiioonnsshhiipp EExxaammpplleess 
 Display an customer order EExxaammppllee ((33)) 
 Restaurant customer order relationships: 
 Waiter / staff 
 Item order reference menu dish 
27
VViieewwss 
AAdddd rreellaattiioonnsshhiippss 
 Views – Add relationship Example (3) 
 Referenced – Read entity referenced from 
source 
 View is based upon Customer Order and reading 
Staff, and Dish information 
 Referencing – Read source from entity 
reference 
 View is based upon Staff and reading Customer 
Order information. 
28
WWhhaatt iiss aaggggrreeggaattiioonn?? 
 Groups “things” in a useful way. 
 Aggregation means to collect, combine, and / or 
summarize data in some useful form. 
 In the context of views tables, aggregation is: 
 The process of grouping and compressing row 
 Based on the values of one or more columns 
 While applied summary (aggregation) functions on 
other columns. 
 Count, sum, minimum, maximum, etc. 
29
Why? 
 Organize your content in a meaningful way. 
 Calculate summary totals 
30
How could you possible be a 
AGGREGATION 
expert? 
31
Aggregation 
32
OOtthheerr AAggggrreeggaattiioonn 
EExxaammpplleess 
 Google analytics 
 Nielsen TV ratings 
 Gallup poll / surveys 
 Summary reports totals 
 Newspaper – News, Sports, Business 
33
TTwwoo ttyyppeess ooff 
AAggggrreeggaattiioonn 
 NNaattiivvee aaggggrreeggaattiioonn ffrroomm wwiitthhiinn VViieewwss 
 AAddddiittiioonnaall mmoodduullee:: VViieewwss AAggggrreeggaattiioonn PPlluuss 
((vviieewwss__aaggggrreeggaattoorr)) 
34
NNaattiivvee VViieewwss 
AAggggrreeggaattiioonn 
 Aggregation is the process of grouping and 
compressing result rows based on the values of 
ONE OR MORE columns. 
 Does NOT generate grand totals 
35
NNaattiivvee VViieewwss 
AAggggrreeggaattiioonn 
 DDoonnee ffrroomm wwiitthhiinn tthhee vviieewwss mmoodduullee 
 EEnnaabbllee tthhiiss bbyy cchhaannggiinngg ““UUssee aaggggrreeggaattiioonn:: YYeess”” 
 AAggggrreeggaattee ppaarraammeetteerrss aassssiiggnneedd ttoo eeaacchh ffiieelldd 
 Examples 
 RReessttaauurraanntt mmeennuu EExxaammppllee ((44)) 
 SSoonnss ooff AAmmeerriiccaann VVeetteerraannss 
36
RReellaattiioonnsshhiippss 
CT – Menu Item 
37 
CT – Customer Survey 
CT – Customer Order 
CT – Wait staff 
CT - Menu section
NNaattiivvee VViieewwss 
AAggggrreeggaattiioonn 
 RReessttaauurraanntt ssuurrvveeyy EExxaammppllee ((55)) 
38 
CT – Menu Item 
CT – Customer Survey 
CT – Customer Order 
CT – Wait staff 
CT - Menu section
VViieewwss AAggggrreeggaattiioonn 
PPlluuss 
 Aggregation is the process of grouping and 
compressing result rows based on the values of 
only ONE columns, while applied summary 
(aggregation) functions on other columns. 
 Does generate a grand total. 
39
VViieewwss AAggggrreeggaattiioonn 
PPlluuss 
 Download & enable the views_aggregator 
module (aka Views Aggregation Plus) 
 This add a new “format” in views 
 Table with aggregation options 
 Use table with aggregation Settings 
 Disables / over rides native Views aggregation 
 EExxaammpplleess 
 RReessttaauurraanntt mmeennuu EExxaammppllee ((66)) 
 SSoonnss ooff AAmmeerriiccaann VVeetteerraannss 
40
CCoonnggrraattuullaattiioonn!! 
YYoouu aarree nnooww aann AAddvvaannccee VViieewwss bbuuiillddeerr!! 
41
Views conditionals 
 mmoodduullee:: vviieewwss__ccoonnddiittiioonnaall EExxaammppllee ((77)) 
 You want to check some condition before you 
decided to the field should be displayed. 
 In my case, I check a person’s role before decide 
if they have the permissions to see a specific 
field.. 
 EExxaammppllee 
42
Download a table 
into a CSV file 
 mmoodduulleess:: vviieewwss__ddaattaa__eexxppoorrtt 
 The module view data export will allow you to 
download your table view into a comma 
separated value (CSV) file. 
43
Make a table view “responsive” 
 mmoodduullee:: ttaabbllee ttrraasshh 
 While we cannot make a table view truly 
responsive, this does the next best thing. 
 When the table view is displayed on a tablet or a 
phone, table trash hides the required number of 
columns so that the report will fit on the device. 
 To expand the report the user can then click on 
the plus next to the line in which they are 
interested. 
44

More Related Content

Similar to Wrapping view around your finger 2

Test Automation Myths
Test Automation MythsTest Automation Myths
Test Automation Myths
kevinburr
 
Designing for construction safety concepts and practice
Designing for construction safety concepts and practiceDesigning for construction safety concepts and practice
Designing for construction safety concepts and practice
DocumentStory
 
Agenesia cuerpo calloso
Agenesia cuerpo callosoAgenesia cuerpo calloso
Agenesia cuerpo calloso
jarajam
 

Similar to Wrapping view around your finger 2 (20)

Multivariate analysis for 26 rice grain varieties
Multivariate analysis for 26 rice grain varietiesMultivariate analysis for 26 rice grain varieties
Multivariate analysis for 26 rice grain varieties
 
Research event iao prof. comhaire
Research event iao prof. comhaireResearch event iao prof. comhaire
Research event iao prof. comhaire
 
Ch03 wrd25e instructor
Ch03 wrd25e instructorCh03 wrd25e instructor
Ch03 wrd25e instructor
 
Cost management-slidesppt4855
Cost management-slidesppt4855Cost management-slidesppt4855
Cost management-slidesppt4855
 
Fluid & electrolytes & acid base
Fluid & electrolytes & acid baseFluid & electrolytes & acid base
Fluid & electrolytes & acid base
 
Synapseindia reviews
Synapseindia reviewsSynapseindia reviews
Synapseindia reviews
 
Test Automation Myths
Test Automation MythsTest Automation Myths
Test Automation Myths
 
Designing for construction safety concepts and practice
Designing for construction safety concepts and practiceDesigning for construction safety concepts and practice
Designing for construction safety concepts and practice
 
Chapter 2 - Assignment Analyzing Transactions
Chapter 2 - Assignment Analyzing Transactions Chapter 2 - Assignment Analyzing Transactions
Chapter 2 - Assignment Analyzing Transactions
 
Learning preferences
Learning preferencesLearning preferences
Learning preferences
 
Branding in the USA - a beginners guide to effectively brand your products/se...
Branding in the USA - a beginners guide to effectively brand your products/se...Branding in the USA - a beginners guide to effectively brand your products/se...
Branding in the USA - a beginners guide to effectively brand your products/se...
 
Chapter 1 notes abs 10/29
Chapter 1 notes abs 10/29Chapter 1 notes abs 10/29
Chapter 1 notes abs 10/29
 
WSB day 1 ecology
WSB day 1 ecologyWSB day 1 ecology
WSB day 1 ecology
 
19 Algorithms and complexity
19 Algorithms and complexity19 Algorithms and complexity
19 Algorithms and complexity
 
Agenesia cuerpo calloso
Agenesia cuerpo callosoAgenesia cuerpo calloso
Agenesia cuerpo calloso
 
Web 2.0
Web 2.0Web 2.0
Web 2.0
 
DataWarehousing Unit 1A
DataWarehousing Unit 1ADataWarehousing Unit 1A
DataWarehousing Unit 1A
 
Agency and The Use of Electronic Media
Agency and The Use of Electronic MediaAgency and The Use of Electronic Media
Agency and The Use of Electronic Media
 
18 Hash tables and sets
18 Hash tables and sets18 Hash tables and sets
18 Hash tables and sets
 
Replace your lawn sprinkler controller
Replace your lawn sprinkler controllerReplace your lawn sprinkler controller
Replace your lawn sprinkler controller
 

Wrapping view around your finger 2

  • 1. WWrraappppiinngg VViieewwss aarroouunndd yyoouurr ffiinnggeerrss 1
  • 2. 2 DDeennnniiss SSoolliiss  SSoolliiss MMeeddiiaa GGrroouupp  OOvveerr 2200 yyeeaarrss ooff aapppplliiccaattiioonn ssooffttwwaarree ddeevveellooppmmeenntt..  22 yyeeaarrss ooff DDrruuppaall ddeevveellooppmmeenntt  AAssssiissttiinngg wwiitthh DD88 MMiiggrraattiioonn iinn ccoorree  dd..oo.. :: ddeennssoolliiss  iirrcc:: ##ddrruuppaall--fflloorriiddaa && ## ddrruuppaall--mmiiggrraattee:: ddeennssoolliiss  sskkyyppee:: ddeennssoolliiss..aaooll..ccoomm
  • 3. Dennis Solis BBoorrnn aanndd rr aaiisseedd iinn SSFF 3 LLiivvee iinn CCooccooaa,, FFlloorriiddaa
  • 4. UUHHKK SSuuggggeessttiioonnss ffoorr VViieewwss  NNaammee ccoonntteenntt ttyyppeess iinn ssiinngguullaarr  NNaammeess vviieewwss iinn pplluurraall  IInncclluuddee nnooddee ttyyppee iinn ffiieelldd nnaammee EExxaammppllee ((11))  EEaassiillyy ffiinndd ffiieelldd iinn vviieewwss lliisstt ooff ffiieellddss..  IIff uussiinngg mmuullttiippllee vviieewwss::  ““AAllll ddiissppllaayyss”” vvss ““tthhiiss ppaaggee””  SSttrruuccttuurree -->> VViieewwss -->> SSeettttiinnggss  SShhooww tthhee SSQQLL qquueerryy  MMaakkee iinnppuutt rreeqquuiirreedd BBEEFFOORREE vviieewwss rruunnss.. 4
  • 5. UUHHKK SSuuggggeessttiioonnss ffoorr VViieewwss  PPaaggee vviieewwss wwiitthh ssaammee ppaatthh..  BBaadd –– oonnllyy oonnee vviieeww wwiillll aappppeeaarr iinn tthhee mmeennuu  GGoooodd –– iiff tthhee ddiiffffeerreenntt vviieewwss hhaavvee ddiiffffeerreenntt rroollee ppeerrmmiissssiioonn,, yyoouu ccaann hhaavvee mmuullttiippllee vviieewwss uunnddeerr oonnee mmeennuu iitteemm –– aanndd rroollee aapppprroopprriiaattee vviieeww wwiillll aappppeeaarr..  WWiitthh vviieewwss aaggggrreeggaattiioonn –– ddoo nnoott ssoorrtt tthhee ddaattaa.. LLeett tthhee aaggggrreeggaattiioonn ddoo iitt..  DDoonn’’tt ffoorrggeett ttoo ppuutt iinn NNoo RReessuullttss mmeessssaaggee iinn yyoouurr vviieeww.. 5
  • 6. VViieewwss TTooppiiccss Modules Contextual Filter views, ctools Views Relationship views, ctools Aggregation views, views aggregator 6
  • 7. VViieewwss IIff TTiimmee TTooppiiccss Modules Views conditional views_conditional Download views_data_export Relationship entity reference, entity entity connect 7
  • 8. YYoouu aarree aallll eexxppeerrttss iinn Contextual filters Relationships Aggregation 8
  • 9. What is a contextual filter?  Basically a contextual filter is simply a way of limiting what information you displayed to the user. 9
  • 10. Why?  Help your users focus on items for which they are search.  Limit what data the user see. 10
  • 11. How could you possible be a CONTEXTUAL FILTER expert? 11
  • 16. CCoonntteexxttuuaall FFiilltteerr EExxaammpplleess  Courses on a restaurant’s menu  Bad Camp sessions  Airline reservations  Filter by product types on Amazon or E-Bay 16
  • 17. CCoonntteexxttuuaall FFiilltteerrss SSaammpplleess  RReessttaauurraanntt MMeennuu EExxaammppllee ((22))  SSoonnss ooff AAmmeerriiccaann VVeetteerraannss 17
  • 18. WWhhaatt iiss aa rreellaattiioonnsshhiippss?? User Author’s Name 18 Content Menu category •Starters •Appetizers Image Content type (taxonomy)
  • 19. Why?  You want to maintain a single copy / instance of your data.  Your web site reference the single copy / instance of your data.  If you change the data, it is changed through out the web site. 19
  • 20. How could you possible be a RELATIONSHIP expert? 20
  • 21. RReellaattiioonnsshhiippss  Because of the relationship, you know some things about the other person. 21
  • 22. RReellaattiioonnsshhiippss User Author’s Name 22 Content Menu category •Starters •Appetizers Image Content type (taxonomy)
  • 23. RReellaattiioonnsshhiippss  Author / user create a content node  An image is associated with a content node  A taxonomy term associated with a content node  Another entity associated with a content node 23
  • 24. RReellaattiioonnsshhiipp // SSQQLL VViieeww  INNER JOIN:  Returns all rows when there is at least one match in BOTH tables.  LEFT JOIN:  Return all rows from the left table, and the matched rows from the right table. 24
  • 25. RReellaattiioonnsshhiippss CT – Menu Item 25 CT – Customer Survey CT – Customer Order CT – Wait staff CT - Menu section
  • 26. How do you create a relationship?  Setup a field as an entity reference EExxaammppllee ((33)) 26
  • 27. RReellaattiioonnsshhiipp EExxaammpplleess  Display an customer order EExxaammppllee ((33))  Restaurant customer order relationships:  Waiter / staff  Item order reference menu dish 27
  • 28. VViieewwss AAdddd rreellaattiioonnsshhiippss  Views – Add relationship Example (3)  Referenced – Read entity referenced from source  View is based upon Customer Order and reading Staff, and Dish information  Referencing – Read source from entity reference  View is based upon Staff and reading Customer Order information. 28
  • 29. WWhhaatt iiss aaggggrreeggaattiioonn??  Groups “things” in a useful way.  Aggregation means to collect, combine, and / or summarize data in some useful form.  In the context of views tables, aggregation is:  The process of grouping and compressing row  Based on the values of one or more columns  While applied summary (aggregation) functions on other columns.  Count, sum, minimum, maximum, etc. 29
  • 30. Why?  Organize your content in a meaningful way.  Calculate summary totals 30
  • 31. How could you possible be a AGGREGATION expert? 31
  • 33. OOtthheerr AAggggrreeggaattiioonn EExxaammpplleess  Google analytics  Nielsen TV ratings  Gallup poll / surveys  Summary reports totals  Newspaper – News, Sports, Business 33
  • 34. TTwwoo ttyyppeess ooff AAggggrreeggaattiioonn  NNaattiivvee aaggggrreeggaattiioonn ffrroomm wwiitthhiinn VViieewwss  AAddddiittiioonnaall mmoodduullee:: VViieewwss AAggggrreeggaattiioonn PPlluuss ((vviieewwss__aaggggrreeggaattoorr)) 34
  • 35. NNaattiivvee VViieewwss AAggggrreeggaattiioonn  Aggregation is the process of grouping and compressing result rows based on the values of ONE OR MORE columns.  Does NOT generate grand totals 35
  • 36. NNaattiivvee VViieewwss AAggggrreeggaattiioonn  DDoonnee ffrroomm wwiitthhiinn tthhee vviieewwss mmoodduullee  EEnnaabbllee tthhiiss bbyy cchhaannggiinngg ““UUssee aaggggrreeggaattiioonn:: YYeess””  AAggggrreeggaattee ppaarraammeetteerrss aassssiiggnneedd ttoo eeaacchh ffiieelldd  Examples  RReessttaauurraanntt mmeennuu EExxaammppllee ((44))  SSoonnss ooff AAmmeerriiccaann VVeetteerraannss 36
  • 37. RReellaattiioonnsshhiippss CT – Menu Item 37 CT – Customer Survey CT – Customer Order CT – Wait staff CT - Menu section
  • 38. NNaattiivvee VViieewwss AAggggrreeggaattiioonn  RReessttaauurraanntt ssuurrvveeyy EExxaammppllee ((55)) 38 CT – Menu Item CT – Customer Survey CT – Customer Order CT – Wait staff CT - Menu section
  • 39. VViieewwss AAggggrreeggaattiioonn PPlluuss  Aggregation is the process of grouping and compressing result rows based on the values of only ONE columns, while applied summary (aggregation) functions on other columns.  Does generate a grand total. 39
  • 40. VViieewwss AAggggrreeggaattiioonn PPlluuss  Download & enable the views_aggregator module (aka Views Aggregation Plus)  This add a new “format” in views  Table with aggregation options  Use table with aggregation Settings  Disables / over rides native Views aggregation  EExxaammpplleess  RReessttaauurraanntt mmeennuu EExxaammppllee ((66))  SSoonnss ooff AAmmeerriiccaann VVeetteerraannss 40
  • 41. CCoonnggrraattuullaattiioonn!! YYoouu aarree nnooww aann AAddvvaannccee VViieewwss bbuuiillddeerr!! 41
  • 42. Views conditionals  mmoodduullee:: vviieewwss__ccoonnddiittiioonnaall EExxaammppllee ((77))  You want to check some condition before you decided to the field should be displayed.  In my case, I check a person’s role before decide if they have the permissions to see a specific field..  EExxaammppllee 42
  • 43. Download a table into a CSV file  mmoodduulleess:: vviieewwss__ddaattaa__eexxppoorrtt  The module view data export will allow you to download your table view into a comma separated value (CSV) file. 43
  • 44. Make a table view “responsive”  mmoodduullee:: ttaabbllee ttrraasshh  While we cannot make a table view truly responsive, this does the next best thing.  When the table view is displayed on a tablet or a phone, table trash hides the required number of columns so that the report will fit on the device.  To expand the report the user can then click on the plus next to the line in which they are interested. 44