views模块主要用来查询网站中数据(从哪个表查询数据,用什么条件过滤,取得哪些字段),并配置以何种format(list,table)及何种dispaly(page,block)来显示这些数据。
模块介绍
views首先是一个query builder.
在views editor中可以配置query及format。

配置
- Configure Views for debugging
- 访问admin/structure/views/settings,选中[Show the SQL query]
- 访问admin/structure/views/settings/advanced,选中[Add Views signature to all SQL queries]
- 上线运行时停用views UI
views模块包括views和views UI两个模块。上线运行时需要关闭views UI功能。
Usage
- choose what to query
- limit selection with filters
- view modes or fields
- select and Configure formatting
- choose dispalys - and/or add attachments
workflow image








学习资源
- A Totally Beginner Tutorial to Views for Drupal 7
- Views Mini-Course, Part I: An Introduction to Viewsvideo&slide
- Views Mini-Course, Part II: Creating Flexible Views with Drupal 7video
- Views Mini-Course, Part III: How to Back Up Your Views Safelyvideo&slide
- Tips and Tricks for Getting the Most Out of Viewsslide
学习资源1-5备忘
- Demo: Your Front Page [Views Mini-Course, Part I: An Introduction to Views]
- Demo: customize the view add a dispaly [Views Mini-Course, Part I: An Introduction to Views]
- Demo: Exposed filters [Views Mini-Course, Part II: Creating Flexible Views with Drupal 7]
- Demo: attachments [Views Mini-Course, Part II: Creating Flexible Views with Drupal 7]
- Demo: relationship [Views Mini-Course, Part II: Creating Flexible Views with Drupal 7]
- Demo: contextual filters [Views Mini-Course, Part II: Creating Flexible Views with Drupal 7]
- calendar [Views Mini-Course, Part II: Creating Flexible Views with Drupal 7]
- slideshow [Views Mini-Course, Part II: Creating Flexible Views with Drupal 7]
- admin views [Views Mini-Course, Part II: Creating Flexible Views with Drupal 7]
- views bulk operation [Views Mini-Course, Part II: Creating Flexible Views with Drupal 7]
- workbench [Views Mini-Course, Part II: Creating Flexible Views with Drupal 7]
- Demo: VOB [Views Mini-Course, Part II: Creating Flexible Views with Drupal 7]
- Don’t forget [Views Mini-Course, Part III: How to Back Up Your Views Safely]
- Views qulity checklist [Views Mini-Course, Part III: How to Back Up Your Views Safely]
- anatomy of a view [Views Mini-Course, Part III: How to Back Up Your Views Safely]
- views basic template [Views Mini-Course, Part III: How to Back Up Your Views Safely]
- slideshow apache_solr calendar maps 实际网站 [Tips and Tricks for Getting the Most Out of Views]
练习
filters
- Demo: Exposed filters [Views Mini-Course, Part II: Creating Flexible Views with Drupal 7]
- Use Views to Show Content Created by Drupal Users
expose filters - Demo: relationship [Views Mini-Course, Part II: Creating Flexible Views with Drupal 7]
- Demo: contextual filters [Views Mini-Course, Part II: Creating Flexible Views with Drupal 7
- Manually Select Content for Drupal Views
- 完成功能
使用contextual filters来指定查询条件
- 完成功能
- Using Entity Reference Fields in Drupal Views
- 完成功能

- 完成功能
- Drupal Views Inside Other Views
- 完成功能

- 使用模块
Views Field View : 连接2个view,传递参数给子view
- 完成功能
- Randomly Show Drupal Content or Users in Views
- 完成功能
使用sort filters来随机显示内容
- 完成功能
- How to Create a Popular Articles View in Drupal
- 完成功能
按点击顺序排序文章
- 完成功能
- Show Drupal Content Only With Terms of Specific Depth
- 完成功能
显示Taxonomy子类别的内容
- 完成功能
format
- Show Drupal 8 Content in Tabs, Using Views
- 完成功能

- 完成功能
- How to Build Drupal 8 Slideshows
- 完成功能

- 完成功能
- Creating a Drupal Slideshow with Views Slideshow
- 完成功能

- 使用模块
Chaos tool suite (ctools) 用来提高开发体验的api和工具。另外还包括一个叫page manager的模块,这里用到的应该是page manager。
views_slideshow 轮播模块
- 完成功能
- Display Suite and Views Together in Drupal
- 完成功能

- 使用模块
Display Suite 用来创建复杂页面,控制输出和layout
- 完成功能
- Add CSS Style to Drupal Views
- 完成功能

- 完成功能
- Add Links to Fields in Views
- 完成功能

- 完成功能
- Use Views to Control Drupal’s Taxonomy Pages
- 完成功能
修改drupal提供的views(点击tags terms后显示的页面)
- 完成功能
- How to Create a Calendar in Drupal 8
- 完成功能

- 使用模块
Views Templates 提供一些复杂页面的模板
calendar 日历模块
- 完成功能
dispaly
- Demo: attachments [Views Mini-Course, Part II: Creating Flexible Views with Drupal 7]
Other
- Demo: Your Front Page [Views Mini-Course, Part I: An Introduction to Views]
- Demo: customize the view add a dispaly [Views Mini-Course, Part I: An Introduction to Views]
- How to Create a Glossary View in Drupal
- 完成功能

- 完成功能
- Count the Total Number of Results in Drupal Views
- 使用模块
Token 提供核心不支持的token
- 使用模块
- What Does Delta Mean in Drupal?
- 完成功能
“Delta” only appears fields which have multiple value. “Delta” refers to the order of the values
- 完成功能
其他资源
Learn Views in Drupal 8
Views & SQL Analogy - An easier way to explain Views
drupal 官网Views guide