1 / 32

Wrapping Views around your fingers

Wrapping Views around your fingers. Dennis Solis. Solis Media Group Over 20 years of application software development. 2 years of Drupal development Assisting with D8 Migration in core d.o . : densolis irc : # drupal-florida & # drupal -migrate: densolis skype: densolis.aol.com. 2.

genarof
Télécharger la présentation

Wrapping Views around your fingers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Wrapping Views around your fingers

  2. Dennis Solis Solis Media Group Over 20 years of application software development. 2 years of Drupal development Assisting with D8 Migration in core d.o. : densolis irc: #drupal-florida & # drupal-migrate: densolis skype: densolis.aol.com 2

  3. Views Aggregation TopicsModules Ask for filter views Aggregationviews views aggregator plus

  4. Views If Time TopicsModules Views conditional views_conditional Download views_data_export

  5. Ask for filter before view runs (Example 1) • Change from Basic to Input required.

  6. Ask for filter before view runs

  7. You are all experts in Aggregation

  8. What is aggregation? • 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.

  9. How could you possible be a AGGREGATION expert?

  10. Why? Organize your content in a meaningful way. Calculate summary totals

  11. (Example 2) Aggregation

  12. Other AggregationExamples Google analytics Nielsen TV ratings Gallup poll / surveys Summary reports totals Newspaper – News, Sports, Business

  13. Two types of Aggregation Native aggregation from within Views Additional module: Views Aggregation Plus (views_aggregator)

  14. Native Views Aggregation Aggregation is the process of grouping and compressing result rows based on the values of ONE OR MORE columns. Does NOT generate grand totals

  15. Native Views Aggregation (Example 3) • Done from within the views module • Enable this by changing “Use aggregation: Yes” • Aggregate parameters assigned to each field • Examples • Restaurant menu • Sons of American Veterans

  16. Native Views Aggregation Native aggregation from within Views

  17. Native Views Aggregation CT – Customer Survey CT – Customer Order CT – Menu Item CT - Menu section CT – Wait staff Restaurant survey Example (4)

  18. Views AggregationPlus 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.

  19. Views AggregationPlus • 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 • Examples • Restaurant menu Example (6) • Sons of American Veterans

  20. Views AggregationPlus (Example 5)

  21. Views conditionals module: views_conditional 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. Example

  22. Download a table into a CSV file modules: views_data_export The module view data export will allow you to download your table view into a comma separated value (CSV) file.

  23. Download a table into a CSV file modules: views_data_export The module view data export will allow you to download your table view into a comma separated value (CSV) file.

  24. Download a table into a CSV file (Example 6) Data export is exposed on your view

  25. Download a table into a CSV file (Example 10) Choose “Data Export” from the +Add in views Notice your Format is CSV File

  26. Download a table into a CSV file • You can put replacement patterns in the file name • Setting • The text “by deselection this, the xml file…” is a bit misleading. • Need to check “Provide as file” if you want a download file!

  27. Download a table into a CSV file • Make sure you specify: • A path • I used <view_path>_dnld • Attach to – The view to attach the download. • Batch export – Yes if big download • Pager = Display all items

  28. Views conditionals module: views_conditional 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. Example

  29. Make a table view “responsive” module: table trash 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.

  30. UHK Suggestions for Views • Name content types in singular • Names views in plural • Include node type in field name Example (1) • Easily find field in views list of fields. • If using multiple views: • “All displays” vs “this page” • Structure -> Views -> Settings • Show the SQL query • Make input required BEFORE views runs.

  31. UHK Suggestions for Views • Page views with same path. • Bad – only one view will appear in the menu • Good – if the different views have different role permission, you can have multiple views under one menu item – and role appropriate view will appear. • With views aggregation – do not sort the data. Let the aggregation do it. • Don’t forget to put in No Results message in your view.

  32. Congratulation! You are now an Advance Views builder!

More Related