"Contextual Filters" refers to the contextual information the Views module takes from a page URL.

learn more… | top users | synonyms

1
vote
1answer
44 views

How to add “Content type B” from within “Content type A” and then display both together

I have the following scenario: Content type A Content type B Content type A is added by the admin role. Content type B is added by the students role. Once Content type A is created, then on ...
2
votes
1answer
37 views

Views contexual filter based on nid (not from URL)

I am using Viewfield module to display taxonomy terms of a node is referencing to. I am not using the default taxonomy field available in views because I want more freedom on manipulating the rendered ...
0
votes
0answers
14 views

How to pass views exposed filter values to URL as parameters? [duplicate]

I have a view to display nodes based on taxonomy term, here I have added a views exposed filter based on the node's status field. Is there a way to pass the views exposed filters to URL as when the ...
1
vote
1answer
17 views

Pass view contextual filter arguments programmatically

I want to pass contextual filter arguments programmatically to a view. I know it can be done through views_get_view and views_embed_view, but I want to pass it to a view's page display. Also I want to ...
1
vote
3answers
43 views

What is the difference between normal filter and contextual filter in views?

I am using Drupal 7.34. I have used Views module many time but I don't know difference between normal filter and contextual filter. So can you tell me What is the difference between normal filter and ...
3
votes
0answers
39 views

How do I set up this view?

I'm using the https://www.drupal.org/project/views_field_view module on my Drupal 8 installation, and my current setup consists of: Products (Content Type - has an entity reference to the Product ...
0
votes
0answers
18 views

Is there any way to chain Views contextual filters with OR operator

I have content type Player. I also have content type Team which has two entityreference fields: - field Skip, which allows the user to select one Player node - field Other Players, which allows the ...
0
votes
0answers
41 views

URL alias is not working

I would like the URL's for the different categories in my blog pages to have a customer URL. I changed the URL alias on all of the taxonomy categories and changed the contextual filter to use the ...
0
votes
1answer
32 views

One exposed filter for multiple views

One exposed filter for multiple views I have an exposed filter which is a date field containing a month and year using the “date module”. I want to use different views to read the URL and filter ...
0
votes
1answer
33 views

Content from the same content type as the current user

I have users with a "field_org" entity reference (multiple values allowed) to the "Org" content type. I also have a "field_org" (single value) in my "Article" content type. When looking at a user ...
1
vote
0answers
10 views

taxonomy terms view with custom alphabar for not listed language

I could solve just part of my problem, check "taxonomy terms view with custom alphabar (for Spanish)". I'm working with two languages, Spanish and Mapudungun, so I have Spanish > Mapudungun and ...
0
votes
0answers
14 views

Multiple relationships in Views Contextual Filters

I use Views in every project, and its not that often that I run into a use case like this any more. In the set up below, I have a Content type with two field collection fields (day guest and evening ...
0
votes
2answers
46 views

How do I show related content?

Using Drupal 7 and Views 3 I am trying to setup a block to show related content based on taxonomy terms.I have read numerous articles and threads on how to do this but none seem to work, this might be ...
0
votes
0answers
12 views

Content Pane view with taxonomy term contextual filter

I have had a hard time finding help for all the options for contextual filters. Here's my situation. I have a taxonomy food_type. Under there I have some terms, fruits, veggies, meat. Under fruit ...
1
vote
0answers
19 views

Views 3 - Add wildcard or “contains words” to contextual filters

I setup a basic contextual filter in Views 3 and currently I have it pass in a field called "office" which is set by the $user. I have many different offices in my results with the string "new york" ...
1
vote
0answers
12 views

How do I pass a profile field as contextual filter? [closed]

I am trying to pass a profile field as contextual filter in a view. How do I add it? I need to pass the term ID.
0
votes
0answers
14 views

How can I have the values of two exposed filters filter for other multiple hidden field values in a view?

What is your intended major and/or minor? (can choose multiple) major1 (filters for multiple field type values, processor, memory, storage...) major2 (filters for multiple field type values...) ...
0
votes
1answer
36 views

How to display blogs related to particular taxonomy term name

I am creating blogs in my site. I have categorized the blogs by using taxonomy terms. I want to display these category names in right side view as a block, and when user clicks on the name, views ...
1
vote
0answers
16 views

Using a Contextual filter on a webform

I have a View that creates a tabbed block with different content types shown in the different tabs. I now want to add a Webform as another tab. Normally I would add the webform in under the Filter ...
1
vote
0answers
25 views

How do I set meta tag information in a view display based off the contextual filter?

I have a display in a view (page) which uses a taxonomy term id as a contextual filter to choose what content to display. I need to be able to change the meta tag based on the value of the taxonomy ...
0
votes
1answer
26 views

Is it possible to combine contextual filters with regular filters?

I would like to take my standard taxonomy term view and add a "meta" category that would show up in addition to the term selected. The result should be that items in the meta category show up as well ...
3
votes
1answer
106 views

How to create a slideshow of different views?

I am trying to create a slideshow of different Views. I am thinking that the "view field" might work with "views slide show" - possibly sending the "view result counter" through as an argument. I am ...
0
votes
2answers
15 views

Set view's filter to show nodes of entity refference field of current node

I have nodes of content type "product" and this content type has an entity reference field with multiple values, that contains references to another product nodes. Is it possible to set the filter ...
0
votes
2answers
12 views

Views contextual filter pages and duplicate content?

I just picked up a site that has its content represented by views pages with contextual filters instead of content pages, meaning that the content is available in two places. For instance, mysite.com/...
0
votes
1answer
17 views

Help with contextual filters needed

I'm trying to understand how arguments get passed into a view. I have a view which was working using content: type (=PersonStory) which is a join table connecting via Views Relationships to content: ...
1
vote
1answer
40 views

Contextual filter using taxonomy alias

I have a list of nodes that I want to attach as a block to another node using a contextual filter. Depending on the URL alias I want a specific node to be attached to it. The problem is that I want ...
0
votes
1answer
20 views

How do I filter a view based on a multilingual alias?

I have a view with a contextual filter which builds a page based on a product's model number. The path is /support/%, where % is the contextual filter for the model number. This works fine for English ...
1
vote
3answers
25 views

Apply view contextual filter only if user role is not administrator

I have a view that filter a list of taxonomies based on the taxonomies associated to the logged in user. This works fine. Now, I need to create an exception only for users with role "administrator" ...
1
vote
0answers
24 views

Views slow load time with date contextual filter

We have a Drupal site with a view of events content type (which is a list of events happening around the area). There is a display with a date contextual filter that you can filter based on a single ...
0
votes
0answers
21 views

Use a contextual filter when the value for the first two aren't given

I have three contextual filters in view. It works, but I can't make work if I don't want to use first two filters using a URL like http:example.com/firstValue/secondValue/thirdValue. How can I ...
0
votes
0answers
34 views

Paragraphs, embedded view

I'm building a Page with paragraphs, which embeds 2 views with viewreference field. One view is a leaflet map, the second are the fields like location, city and so on. On the second view there's a ...
1
vote
1answer
26 views

Commerce Line Item Taxonomy Reference Filtered by Product Selection

Here's the scenario: I'm selling furniture. I have a chair we'll call Mission Chair. The Mission Chair comes in oak or maple, both are priced differently. I have a field in my product I have a ...
0
votes
1answer
18 views

Function not working in contextual filter

I have a function in my custom module that return the nids for drafts in array. function get_all_drafts(){ $query = db_query("select bid from kom_draft"); $res = $query->fetchAll(); ...
1
vote
1answer
42 views

Facing Repetition in records when I use multiple relations in Views

I am trying to use views fetch the News and Articles for display on my custom content type "Industries". On Industries content type I have node reference fields to the News and Articles content types. ...
1
vote
0answers
19 views

Exclude taxonomy term parent in view

i have a menu with this structure: Item name: Sport Item link: taxonomy/term/35 And taxonomy terms with this structure: Football tid 35 - Smallfotball tid 38 parentid 35 - Bigfootball tid 55 parent ...
1
vote
1answer
29 views

Menu with contextual links from view

Each user, lets say performer has profile page (which is node, not default user page) which is visible and can be made once.. Band (for example "Cool Band") can create image gallery, video gallery, ...
0
votes
1answer
32 views

Use contextual filter global null to pass values to override field result

I come again with new question about Drupal Views and i hope you can help and explain me how to achieve this, I made a page view to display all my content (this works fine) with the following path: /...
1
vote
1answer
28 views

Help with view on multiple pages

I experimented for a few hours with drupal (tried contextual filters) and searched across the internet, but couldn't find a solution for my problem. (I'm not a "drupal engineer", so maybe it's very ...
1
vote
0answers
26 views

How to use contextual filter argument as a title in default menu tab — views?

How to set title in above image = current year so that it will provide all titles/content of current year -- 2016? OR How can we create an yearly archive with default year opened = current year ...
1
vote
1answer
59 views

Passing Arguments between an EntityReference field and an EntityReference View

So I'm trying to figure out how to filter a couple of entityreference view I'm using to populate an entityreference field. It has the option to pass arguments to the view, but I'm not sure HOW to do ...
1
vote
0answers
10 views

Based on articles taxonomy and branch selection we are differentiating the taxonomies for different branches

Based on articles taxonomy and branch selection we are differentiating the taxonomies for different branches. I created one taxonomy per one page just like section 1 sub ...
1
vote
0answers
13 views

Views contextual filter by same Taxonomy Term Name with different Parent

I'm trying to filter a view with a path like this "/view/%/%/%" , i'm having a hard time trying to filter nodes that belong to different childs but have the same taxonomy term name. This is the ...
0
votes
1answer
31 views

How to hide taxonomy terms with no content

How to display only those taxonomy terms that have content? Can this be done with the help of relationships or contextual filters?
0
votes
0answers
43 views

Related Content View using Entity Reference Fields and Taxonomy Depth

I would like to display a "Related Content" block on nodes of type Car when the content being viewed shares the same Entity Reference field value of node of type Parts. Content Type #1 - Car Title ...
1
vote
1answer
17 views

Combine own stream with flagged user

I am using follow flag latest version and edited the view fbss_ur_stream. I also created a following and followers view with the help of this tutorial Twitter style follow following I took the idea ...
1
vote
2answers
20 views

Contextual filter with Node Reference and Pathauto

I work for an organization that makes research grants. We periodically write "research briefs" for our grants to summarize what they found. My test Drupal site has a view of research briefs, and what ...
0
votes
1answer
33 views

How to use Php code in Views page contextual filter with dynamic URL i.e using %?

I have a content type App with a term reference field called App category. I'm creating a view page with path app/%. I don't want to use App ID or anything numeric in URL in place of %, so I'll be ...
1
vote
0answers
34 views

View works in preview but not showing on the page [closed]

I have created a simple view. It is designed so that content with a taxonomy term (category) has a contextual filter. I want users can click on a category in an a custom content type of HowTo, and go ...
1
vote
1answer
96 views

Hierarchical Views Catalog using Taxonomy in Drupal 8

I have the following Taxonomy vocabulary named Product Catagories: Categorie1 Sub categorie1 Sub categorie1 Categorie2 Sub categorie2 Sub categorie2 If the user click on e.g. Categorie1 I ...
1
vote
1answer
19 views

Filtering Taxonomy term descriptions in Views

I've created a Taxonomy Vocabulary with the name "Remarque prix". I imported it as a Term reference field to Commerce Product with the aim to be able to give a unique Vocabulary term to each product (...