Навигаторы

Видеорегистраторы

Ноутбуки

Планшеты

Карты

проблемы и решение

Навител

Если удалили

Если завис

Если не работает

Что делать

Drupal contextual filters

Опубликовано: 05.05.2017

видео drupal contextual filters

Views #5 : Contextual Filters & Relationships (Drupal 8 Tutorial #7)

It can take a while when you're new, but once you start to wrap your head around Views, that is when Drupal gets really fun. In this tutorial, I'll go over how to use Contextual Filters in Views to alter your content dynamically based on information in the URL. If you're a visual learner, you can skip to the video at the end of this post for a detailed walk through of the process.

In this example, have page of cat photos. It's мейд with a standard view that pulls from content type 'Animals' and then narrows it down with a standard filter based on a Species taxonomy list.

drupal contextual filters allows us to filter content based on dynamic information. It doesn't always have to come from the URL, but that is the most common example. Here's how you do it.

In the Advanced tab of your view, click 'add' next to Contextual filters. I want to filter on the name of the animal, so I do a search to narrow down the choices and then choose the name field.

Now you have some options, the two most important being:


Drupal 8 Site Building, Lesson 30: Advanced Contextual Filters in Views


Drupal 8 Site Building, Lesson 29: Contextual Filters

Drupal Tutorials #34 Views - Contextual Filters with Block Views(, 2012-05-26T01:22:18.000Z)

Drupal Tutorials #34 Views - Contextual Filters with Block Views

Drupal 7 Advanced Views Tip: Contextual Filters(, 2012-02-02T18:08:39.000Z)

Drupal 7 Advanced Views Tip: Contextual Filters

Drupal 7 Views Module Tutorial 6 of 10 - Views Relationships and Contextual Filters(, 2013-01-30T10:47:38.000Z)

Drupal 7 Views Module Tutorial 6 of 10 - Views Relationships and Contextual Filters

Views : Contextual Filters (Drupal Tutorial)(, 2015-04-05T13:06:23.000Z)

Views : Contextual Filters (Drupal Tutorial)

Drupal 8 Site Building, Lesson 30: Advanced Contextual Filters in Views(, 2016-07-01T18:29:12.000Z)

Drupal 8 Site Building, Lesson 30: Advanced Contextual Filters in Views

Views #5 : Contextual Filters & Relationships (Drupal 8 Tutorial #7)(, 2015-12-11T14:46:03.000Z)

Views #5 : Contextual Filters & Relationships (Drupal 8 Tutorial #7)

Drupal 8 Site Building, Lesson 29: Contextual Filters(, 2017-03-08T15:49:39.000Z)

Drupal 8 Site Building, Lesson 29: Contextual Filters

Drupal 7 Better Exposed Filters - Daily Dose of Drupal Episode 49(, 2012-11-14T04:20:08.000Z)

Drupal 7 Better Exposed Filters - Daily Dose of Drupal Episode 49

Drupal Commerce - Hierarchical Views Catalog using Taxonomy(, 2013-08-12T16:05:55.000Z)

Drupal Commerce - Hierarchical Views Catalog using Taxonomy

Drupal 7 Development Tutorials(Hindi/Urdu) -  Views Contextual Filters with Block Views(, 2016-05-08T06:23:18.000Z)

Drupal 7 Development Tutorials(Hindi/Urdu) - Views Contextual Filters with Block Views

How to create contextual filters in views drupal 7(, 2014-06-06T18:45:32.000Z)

How to create contextual filters in views drupal 7

drupal 8 views 05 02 block views contextual filter 470417438(, 2017-01-10T08:36:26.000Z)

drupal 8 views 05 02 block views contextual filter 470417438

Drupal 7 Related Content with Views Module Tutorial(, 2015-04-23T00:16:42.000Z)

Drupal 7 Related Content with Views Module Tutorial

Using Views with the Entity Reference module in Drupal 7 - Daily Dose of Drupal episode 151(, 2014-05-21T11:50:15.000Z)

Using Views with the Entity Reference module in Drupal 7 - Daily Dose of Drupal episode 151

Contextual Filter(, 2014-07-16T18:38:45.000Z)

Contextual Filter

Drupal 7 Tutorials #41 - Views - Better Exposed Filters(, 2012-06-08T00:43:06.000Z)

Drupal 7 Tutorials #41 - Views - Better Exposed Filters

Group by Date with Views in Drupal 7(, 2012-07-18T10:43:36.000Z)

Group by Date with Views in Drupal 7

Drupal Tutorials #34 Views   Contextual Filters with Block Views(, 2014-09-30T03:48:56.000Z)

Drupal Tutorials #34 Views Contextual Filters with Block Views

Drupal Views: Suggest Similar Nodes List by Taxmony Terms Tutorial(, 2015-06-22T17:58:47.000Z)

Drupal Views: Suggest Similar Nodes List by Taxmony Terms Tutorial

Drupal a Views Dependent Filter(, 2012-04-11T08:18:34.000Z)

Drupal a Views Dependent Filter

Drupal Views Exposed filters and location proximity(, 2014-10-23T05:40:59.000Z)

Drupal Views Exposed filters and location proximity

Learn Drupal 8 - Advanced overview of views part1(, 2015-11-15T12:06:46.000Z)

Learn Drupal 8 - Advanced overview of views part1

Mastering Drupal 8 Views(, 2016-06-26T23:57:39.000Z)

Mastering Drupal 8 Views

Drupal 7 Views Module Tutorial 4 of 10: Blocks, Attachments and Exposed Filters(, 2013-01-07T02:59:00.000Z)

Drupal 7 Views Module Tutorial 4 of 10: Blocks, Attachments and Exposed Filters

Drupal Views 2 (Filter, Exposed Filter, Contextual Filter) Tutorial Deutsch(, 2014-07-05T00:45:58.000Z)

Drupal Views 2 (Filter, Exposed Filter, Contextual Filter) Tutorial Deutsch

Drupal 7 Tutorials #37 - Views - Exposed Filters(, 2012-05-31T00:54:08.000Z)

Drupal 7 Tutorials #37 - Views - Exposed Filters

VIEWS 3 - Contextual Filters im Praxisbeispiel(, 2011-05-23T18:14:59.000Z)

VIEWS 3 - Contextual Filters im Praxisbeispiel

Drupal Views: Sử dụng tính năng Contextual Filter (Argument) tạo block nội dung liên quan(, 2012-04-24T23:20:40.000Z)

Drupal Views: Sử dụng tính năng Contextual Filter (Argument) tạo block nội dung liên quan

Views Exposed Filters (Drupal Tutorial)(, 2012-10-30T18:19:08.000Z)

Views Exposed Filters (Drupal Tutorial)

How to Configure Drupal 7 Node References with the EVA Module - Creating Event Registrations(, 2011-05-15T22:44:14.000Z)

How to Configure Drupal 7 Node References with the EVA Module - Creating Event Registrations

 
rss