SlideShare a Scribd company logo
1 of 15
Download to read offline
Drupal Sevilla
    V2 vs V3
Index

V2 vs V3
Differences
 ●   frontend: basic schema
 ●   backend: functionals differences
 ●   backend: code differences
Similarities
 ●   #Queries

How to <whatever.x> in V3?
whatever 1: exposed filters (Group by)
whatever 2: Pager as a plugin
whatever 3: Query plugin
whatever 4: Add fields from a new table
whatever 5: Relationships 3 levels
whatever 6: Custom computed fields
V2 vs V3:Differences:Frontend

Create view page
pages and block could be pre-configure

Views panel
New format and order
V2 vs V3:Differences:Frontend




 And you, What do you think?
V2 vs V3:Differences:Frontend
V2 vs V3:Differences:backend:functionals

SQL backend: Make as much funcionality pluggable as possible
- Pluggins for queries, the branch 3.x origin
- Other data sources: Whatever restfull API
- Views integration
- Apache Solr
Merlin of Chaos said: http://www.angrydonuts.com/views-3-x-roadmap
Other sources: http://www.cuencodigital.com/articulos/views_3_a_fondo.html
                http://www.lullabot.com/articles/querying-slave-database-with-views




OR, HAVING, GROUP BY clauses,
- No more "Views OR"
- We have aggregation a.k.a Group by
V2 vs V3:Differences:backend:functionals

Pager, exposed & i18n
- System more pluggable
- Now we can change and specific funtionality, we are working with classes and inheritance (i.e
exposed filters)
- We'll see how to!!




Multiple footer and headers
- Depends of the context
- <IMHO>I think it's too limited, </IMHO>
V2 vs V3:Differences:backend:code
- System more pluggable
- More comments
- Add new compatibilities (many settings differences between V2 and v3
- Introduce Group by
- A lot of commented functions
- Hooks
 ●    V2 #hooks = 23 || V3 #hooks = 21
 ●    New hooks in V3
       ○ hook_views_ajax_data_alter: This hook allows to alter the commands which are used on a views
          ajax request.
       ○ hook_views_invalidate_cache: Allow modules to respond to the Views cache being invalidated.
       ○ hook_views_ui_display_top_links_alter: This hooks allows to alter the links at the top of the view
          edit form. Some modules might want to add links there.
 ●    Removed hooks in V3
       ○ hook_views_convert
       ○ hook_views_handlers: How should we do it?
       ○ hook_views_form_submit
       ○ hook_views_form_validate
       ○ hook_views_admin_links_alter
How to <whatever.x> in V3?

whatever 1: exposed filters (Group by)
whatever 2: Pager as a plugin
whatever 3: Add filter from new table
whatever 4: Add fields from a new table
whatever 5: Relationships 3 levels
whatever 6: Custom computed fields
How to <whatever.x> in V3?: whatever1

whatever 1: exposed filters




               Let's start with Drupal!!!
How to <whatever.x> in V3?:whatever2

whatever 2: Pager as a plugin




 Let's see code and try to explain it!!!
                                Infinite Scroll
             http://drupalcode.org/project/views_infinite_scroll.git/tree
How to <whatever.x> in V3?: whatever3

whatever 3: Add fields from a new table
How to <whatever.x> in V3?: whatever4

whatever 4: Add filter from new table
How to <whatever.x> in V3?: whatever5

whatever 5: Add pluging
Thanks to all!!
Any Question?

More Related Content

Viewers also liked

Supervisor Safety Training 1
Supervisor Safety Training 1Supervisor Safety Training 1
Supervisor Safety Training 1
David Knight
 

Viewers also liked (10)

Derecho de autor
Derecho de autorDerecho de autor
Derecho de autor
 
Pengaruh Struktur Modal terhadap Nilai Perusahaan
Pengaruh Struktur Modal terhadap Nilai PerusahaanPengaruh Struktur Modal terhadap Nilai Perusahaan
Pengaruh Struktur Modal terhadap Nilai Perusahaan
 
Un Estándar Para La Información Económica Y Financiera.
Un Estándar Para La Información Económica Y Financiera. Un Estándar Para La Información Económica Y Financiera.
Un Estándar Para La Información Económica Y Financiera.
 
Sanidad animal
Sanidad animalSanidad animal
Sanidad animal
 
Gonzalez gaudiano
Gonzalez gaudianoGonzalez gaudiano
Gonzalez gaudiano
 
φυλλάδιο γεωμετρια παραλληλες
φυλλάδιο γεωμετρια παραλληλεςφυλλάδιο γεωμετρια παραλληλες
φυλλάδιο γεωμετρια παραλληλες
 
Supervisor Safety Training 1
Supervisor Safety Training 1Supervisor Safety Training 1
Supervisor Safety Training 1
 
εξισωσεις ανισωσεις-απολυτα-ριζικα
εξισωσεις ανισωσεις-απολυτα-ριζικαεξισωσεις ανισωσεις-απολυτα-ριζικα
εξισωσεις ανισωσεις-απολυτα-ριζικα
 
Open letter about light pollution
Open letter about light pollutionOpen letter about light pollution
Open letter about light pollution
 
Show me the money (UCF and STC Florida event)
Show me the money (UCF and STC Florida event)Show me the money (UCF and STC Florida event)
Show me the money (UCF and STC Florida event)
 

Similar to Drupal sevilla: Views 2 vs Views3

LearningMVCWithLINQToSQL
LearningMVCWithLINQToSQLLearningMVCWithLINQToSQL
LearningMVCWithLINQToSQL
Akhil Mittal
 
49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf
49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf
49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf
cNguyn506241
 
Selena Deckelmann - Sane Schema Management with Alembic and SQLAlchemy @ Pos...
Selena Deckelmann - Sane Schema Management with  Alembic and SQLAlchemy @ Pos...Selena Deckelmann - Sane Schema Management with  Alembic and SQLAlchemy @ Pos...
Selena Deckelmann - Sane Schema Management with Alembic and SQLAlchemy @ Pos...
PostgresOpen
 
ASP.NET MVC Introduction
ASP.NET MVC IntroductionASP.NET MVC Introduction
ASP.NET MVC Introduction
Sumit Chhabra
 

Similar to Drupal sevilla: Views 2 vs Views3 (20)

Creating Openbravo Workspace Widgets
Creating Openbravo Workspace WidgetsCreating Openbravo Workspace Widgets
Creating Openbravo Workspace Widgets
 
Drupal Views development
Drupal Views developmentDrupal Views development
Drupal Views development
 
The Joy of Subforms with Randy Carey
The Joy of Subforms with Randy CareyThe Joy of Subforms with Randy Carey
The Joy of Subforms with Randy Carey
 
LearningMVCWithLINQToSQL
LearningMVCWithLINQToSQLLearningMVCWithLINQToSQL
LearningMVCWithLINQToSQL
 
49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf
49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf
49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf
 
Scaffolding
ScaffoldingScaffolding
Scaffolding
 
Need 4 Speed FI
Need 4 Speed FINeed 4 Speed FI
Need 4 Speed FI
 
"Paragraphs are more powerful than you can expect" from Vasily Jaremchuk for ...
"Paragraphs are more powerful than you can expect" from Vasily Jaremchuk for ..."Paragraphs are more powerful than you can expect" from Vasily Jaremchuk for ...
"Paragraphs are more powerful than you can expect" from Vasily Jaremchuk for ...
 
Easy Drupal Project Deployment With Features Module & Drush
Easy Drupal Project Deployment With Features Module & DrushEasy Drupal Project Deployment With Features Module & Drush
Easy Drupal Project Deployment With Features Module & Drush
 
d2k
d2kd2k
d2k
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentation
 
Create a PHP Library the right way
Create a PHP Library the right wayCreate a PHP Library the right way
Create a PHP Library the right way
 
RapidApp - YAPC::NA 2014
RapidApp - YAPC::NA 2014RapidApp - YAPC::NA 2014
RapidApp - YAPC::NA 2014
 
Selena Deckelmann - Sane Schema Management with Alembic and SQLAlchemy @ Pos...
Selena Deckelmann - Sane Schema Management with  Alembic and SQLAlchemy @ Pos...Selena Deckelmann - Sane Schema Management with  Alembic and SQLAlchemy @ Pos...
Selena Deckelmann - Sane Schema Management with Alembic and SQLAlchemy @ Pos...
 
ASP.NET MVC Introduction
ASP.NET MVC IntroductionASP.NET MVC Introduction
ASP.NET MVC Introduction
 
ColdBox APIs + VueJS - powering Mobile, Desktop and Web Apps with 1 VueJS cod...
ColdBox APIs + VueJS - powering Mobile, Desktop and Web Apps with 1 VueJS cod...ColdBox APIs + VueJS - powering Mobile, Desktop and Web Apps with 1 VueJS cod...
ColdBox APIs + VueJS - powering Mobile, Desktop and Web Apps with 1 VueJS cod...
 
ITB2019 ColdBox APIs + VueJS - powering Mobile, Desktop and Web Apps with 1 V...
ITB2019 ColdBox APIs + VueJS - powering Mobile, Desktop and Web Apps with 1 V...ITB2019 ColdBox APIs + VueJS - powering Mobile, Desktop and Web Apps with 1 V...
ITB2019 ColdBox APIs + VueJS - powering Mobile, Desktop and Web Apps with 1 V...
 
Debugging - Figuring it out yourself (WordCamp Dublin 2019)
Debugging - Figuring it out yourself (WordCamp Dublin 2019)Debugging - Figuring it out yourself (WordCamp Dublin 2019)
Debugging - Figuring it out yourself (WordCamp Dublin 2019)
 
Tutorial: extending the zend server ui and web api
Tutorial: extending the zend server ui and web apiTutorial: extending the zend server ui and web api
Tutorial: extending the zend server ui and web api
 

Recently uploaded

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهله
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 

Drupal sevilla: Views 2 vs Views3

  • 1. Drupal Sevilla V2 vs V3
  • 2. Index V2 vs V3 Differences ● frontend: basic schema ● backend: functionals differences ● backend: code differences Similarities ● #Queries How to <whatever.x> in V3? whatever 1: exposed filters (Group by) whatever 2: Pager as a plugin whatever 3: Query plugin whatever 4: Add fields from a new table whatever 5: Relationships 3 levels whatever 6: Custom computed fields
  • 3. V2 vs V3:Differences:Frontend Create view page pages and block could be pre-configure Views panel New format and order
  • 4. V2 vs V3:Differences:Frontend And you, What do you think?
  • 6. V2 vs V3:Differences:backend:functionals SQL backend: Make as much funcionality pluggable as possible - Pluggins for queries, the branch 3.x origin - Other data sources: Whatever restfull API - Views integration - Apache Solr Merlin of Chaos said: http://www.angrydonuts.com/views-3-x-roadmap Other sources: http://www.cuencodigital.com/articulos/views_3_a_fondo.html http://www.lullabot.com/articles/querying-slave-database-with-views OR, HAVING, GROUP BY clauses, - No more "Views OR" - We have aggregation a.k.a Group by
  • 7. V2 vs V3:Differences:backend:functionals Pager, exposed & i18n - System more pluggable - Now we can change and specific funtionality, we are working with classes and inheritance (i.e exposed filters) - We'll see how to!! Multiple footer and headers - Depends of the context - <IMHO>I think it's too limited, </IMHO>
  • 8. V2 vs V3:Differences:backend:code - System more pluggable - More comments - Add new compatibilities (many settings differences between V2 and v3 - Introduce Group by - A lot of commented functions - Hooks ● V2 #hooks = 23 || V3 #hooks = 21 ● New hooks in V3 ○ hook_views_ajax_data_alter: This hook allows to alter the commands which are used on a views ajax request. ○ hook_views_invalidate_cache: Allow modules to respond to the Views cache being invalidated. ○ hook_views_ui_display_top_links_alter: This hooks allows to alter the links at the top of the view edit form. Some modules might want to add links there. ● Removed hooks in V3 ○ hook_views_convert ○ hook_views_handlers: How should we do it? ○ hook_views_form_submit ○ hook_views_form_validate ○ hook_views_admin_links_alter
  • 9. How to <whatever.x> in V3? whatever 1: exposed filters (Group by) whatever 2: Pager as a plugin whatever 3: Add filter from new table whatever 4: Add fields from a new table whatever 5: Relationships 3 levels whatever 6: Custom computed fields
  • 10. How to <whatever.x> in V3?: whatever1 whatever 1: exposed filters Let's start with Drupal!!!
  • 11. How to <whatever.x> in V3?:whatever2 whatever 2: Pager as a plugin Let's see code and try to explain it!!! Infinite Scroll http://drupalcode.org/project/views_infinite_scroll.git/tree
  • 12. How to <whatever.x> in V3?: whatever3 whatever 3: Add fields from a new table
  • 13. How to <whatever.x> in V3?: whatever4 whatever 4: Add filter from new table
  • 14. How to <whatever.x> in V3?: whatever5 whatever 5: Add pluging
  • 15. Thanks to all!! Any Question?