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

learn more… | top users | synonyms

1
vote
1answer
19 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
16 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
39 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. ...
0
votes
0answers
14 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 ...
0
votes
1answer
22 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
20 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
23 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
22 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
33 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 ...
0
votes
0answers
9 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 ...
0
votes
0answers
8 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
27 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
40 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 ...
0
votes
1answer
15 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 ...
0
votes
2answers
15 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
21 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
28 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
81 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 ...
0
votes
0answers
10 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 ...
1
vote
2answers
21 views

7 - Views Filter where one field equals Logged in User's Email field

On a custom content type I have created, there is a List(text) field called "Assigned to" that has a drop down selection of certain emails. (E.g user1@domain.com, user2@domain.com, user3@domain.com, ...
0
votes
0answers
25 views

Contextually filtering content on a Search API view

I want to create a page which has the content node fields belonging to a taxonomy term and I want to filter them by using a facet in Drupal 8. This is not possible using the view taxonomy term page ...
0
votes
0answers
16 views

Views Contextual Filter Jump Menu - Option to 'View All'?

I'm using a contextual filter in a block to show a jump menu (dropdown) of taxonomy terms, sorted by the number of times they are used. I'm using this block with another view page to filter the ...
0
votes
1answer
11 views

Restricting view to content associated with user profile

On my site some users have the permission to see others' profile. I'm looking to show a view in a block containing a food content type. It will be displayed on the profile page of the users (user/*). ...
1
vote
2answers
50 views

How to get the real sql query of a view?

One of drupal view displays reviews based on a selected event. It should display 3 reviews but instead it displays only 2. It doesn't happen for all the events and only for certain events instead of 3 ...
0
votes
0answers
2 views

VBO Redirect reduce contextual filters

I have a view that show a List of files, and an own action where I write the selected items to a var. Everything works fine, except for the redirect after the batch process. example: ...
1
vote
1answer
36 views

views contextual filter by current year missing granularity

In a view I need a contextual filter: all nodes with creation date in the current year. In D7 i was able to provide the current date as default value and set a granularity for the date, e.g. the ...
0
votes
0answers
6 views

Views contextual filter with special field from registration and profile menu

User registers and for each user there is special field where he must write PROFILENAME. Value from this field is used in creating all content and links that user creates so we have: ...
0
votes
1answer
14 views

Views contextual filters for user term references

I have two user roles that have term reference fields tied to profiles. One has a single select (user role A) and the other a multi select (user role B), but they reference the same taxonomy. I have ...
0
votes
1answer
44 views

Getting views contextual filter from url for display suite block

I have a URL for an event content type that concatenates two other content types, namely "name-of-venue" and "name-of-performer" with "date-of-event", so the url is ...
3
votes
2answers
49 views

Related Content View with multiple Entity Reference Fields

I am trying to create a View to display related content based on shared taxonomy terms from multiple vocabularies. For example: I have two content types called Car and Parts. I have two ...
1
vote
1answer
30 views

How can I filter a view according to another view's results

I have one view with two display: "latest news" and "populer news" I want show two block side by side like mashable.com. I can easily do that of course but one problem. There are same news both ...
1
vote
0answers
10 views

Drupal 7 Views Contextual Filter Override Title, but Make Singular

I have been able to setup a view that uses contextual filters that are taxonomy terms. The terms are categories and as such are written in the plural form, for example, "Posters" or "Flyers". ...
0
votes
2answers
56 views

Sort criteria is ignored in Views

I have a view that shows related products by means of a contextual filter (PHP). If the returned nid values from the contextual filter is for example "20697, 20735, 20768, 20903, 20695, 21863" I want ...
0
votes
1answer
21 views

How do I embed a custom node creation form inside a view

I have these nodes : Company, Cars, Trucks (cars and truck have a taxonomy term to give it's type). Cars and Trucks have a field named Company wich refer to the Company node. So i can locate the ...
0
votes
1answer
18 views

Contextual filter for taxonomy terms

I have a taxonomy terms display that list a taxonomy_list, this taxonomy_list has parents and childs: Parent child Parent child child Is there a contextual filter in views that i can use to pass ...
0
votes
0answers
8 views

“Delete button” in cart returns 500 internal server error with “Global:Null” in contextual filter in Views

I use D7. In views, I set "Global:Null" whose defaul value is "Current user's cart order ID" in contextual filter for some reason(this is my original cart). If I click the Delete button to delete an ...
0
votes
0answers
5 views

How to validate a view page if contextual filter (argument) is a coordinate (Geofield)?

is it possible to pass a coordinate as an argument to a Views page and check if that argument is a coordinate? An example: View type: content, page View path: find/%,%/%,% Contextual filter 1: ...
1
vote
1answer
16 views

Content Pane on Landing Page not getting Context

I thought that would be fairly easy: I am working with Panopoly and I have multiple Landing Pages, a Vocabulary, Content Items and a View with a Content Pane. The user can select one term per ...
0
votes
1answer
20 views

How can i display view specific content type based on dynamic term name in node page?

Hi i have a content type called "Resource" with 2 term reference fields, branches (A,B,C,D) other one is resource category (rec cat 1,rec cat 2) ,and i have created view called branches list ...
0
votes
0answers
23 views

order view by contextual filter

I've a site developed with Drupal commerce. I'm using the context filter to display a block with related products. I want to display 4 products, first ones I've selected with entity field, if there ...
0
votes
0answers
31 views

Using CONTEXTUAL FILTER [Content: Has taxonomy term ID] while excluding one field

I have several taxonomy reference fields and would like to use [Content: Has taxonomy term ID] to filter content based on all these fields but one (keywords). I tried adding [Content: Has taxonomy ...
1
vote
1answer
31 views

How to filter content in Views based on multiple term custom fields?

I'm trying to find a way to filter Views through contextual filters based on custom taxonomy term fields. Here is an example: Content type: Article Taxonomy vocabulary: Tags Tags custom field: ...
0
votes
1answer
23 views

View of related nodes by continent or country without taxonomy terms

I have a content type called Packages.Each content has two fields: Title and Continent(this field was created using the module Countries). I have created five contents of content type Package: Title ...
1
vote
2answers
24 views

Exclude the current node in a view with related items in case of multiple contextual filters

Excluding the current node from a display with related items is fairly straight forward. However, in my case there's already another contextual filter (NID) in the game for other purposes. Adding ...
0
votes
1answer
17 views

Fallback value for contextual filter, in case the “provided default value” does not exist

I want to display a block on each page (nodes as well as pages created by Views) that displays links to nodes that are tagged with a certain taxonomy term. How to decide which tag should be used: ...
0
votes
1answer
32 views

Filter taxonomy term view by referenced taxonomy term

Using two taxonomies. Fruit: Banana Orange Blueberry Strawberry Lemon Fruit taxonomy has a term reference to the color taxonomy Color: Red Orange Yellow Blue Purple Green Created a view using ...
1
vote
0answers
46 views

Strange Behavior : Drupal 8 Views with Contextual Filter and Path Alias Together

I am testing out a views page on core 8.0.5. The path is set at job/% and the contextual filter is Content: Node ID. This page view only displays a few fields for testing purpose. The preview works ...
1
vote
0answers
22 views

How to pass contextual filters in customer profile empty text?

I have a view displaying customer profiles. It takes 2 contextual filters : the user id and the type of the customer profile (billing/shipping). I want to add a no results behaviour, the "Commerce ...
1
vote
1answer
127 views

Term name converted to term id filter removed?

I am currently working on a view that should show all items from a content type with the given taxonomy term name (not id) in the url. While this was easy to achieve in D7 (by following the answer on ...
1
vote
1answer
69 views

How to create a block showing the sliding gallery of just 1 of the galleries?

I am running a site (D7.43, jQuery 1.10), with the jollyany (bootstrap) theme as the basis. Among other things the site has several image galleries, generated through Views. The set up is as follows: ...