Tagged Questions

"Contextual Filters" refers to the contextual information taken from a page display available to Drupal core and modules. "Contextual Filters" is a synonym and the new name for "Arguments" in Drupal 7.

learn more… | top users | synonyms

0
votes
0answers
8 views

Is it possible to use context filters for Entity Reference View Widget?

I have a Class Content Type which users pay for, I use Entity Reference to attach the users whose payment has been made, and I'd like to use Entity Reference Widget to add them easily just creating a ...
0
votes
0answers
7 views

How do I show a list of users who share similar taxonomy terms indicated on their profile

I am trying to create a Drupal 7 user listing view that will show a block of users who have selected exactly the same term name from a single vocabulary that has a list of names as its terms. My ...
0
votes
1answer
4 views

Views related nodes with same Title

I am building a booking system for a local theatre company. Each theatre event is its own node, and for the same show on different nights, the first night is created, and the node is cloned, with a ...
0
votes
0answers
18 views

Drupal Views - Calendar Display multiple entity references of logged in user

So, I have a view that is a calendar view. I also have a user account with fields added to the user. They are both entity reference fields for a content type of Procedure and Pre-Op. Both of those are ...
0
votes
1answer
12 views

Commerce Products Display Page Using Views

The usual way to display Commerce products is 1. Create Products using Commerce Module Interface 2. Create a Content Type for Products Line Items by referencing the products But I have too many ...
0
votes
1answer
20 views

views contextual filter second variable

I have a view that receives two variables like my-view-url/%/%. In a menu I have created a url something like my-view-url/animals/dogs. How do I get the contextual filter to see the second variable ...
0
votes
1answer
26 views

Use product entity field as filter in Views

I have a product (type: "lamp") with a text field called "power". On the Product display node ("showcase") i also want to see a block made with Views. It must show three other products of the same ...
0
votes
3answers
54 views

How do I configure a view that gets a taxonomy on a node, and retrieves fields from the taxonomy?

I have a view, which only appears when you navigate to certain nodes. Each node which it appears under, has a taxonomy with a field called 'related_content_entity' referencing some related content. ...
0
votes
1answer
12 views

Views: Sort items using contextual filter arguments

Im trying to create a block of "Related products", I have 3 criterias for show the related products: Color, Texture and size. These are taxonomy vocabularies. In the view I can use contextual filters ...
0
votes
1answer
13 views

using contextual filters to filter with relationship

I have articles and issue nodes, where every article is related to an issue. I am trying to create a Views block which shows related Articles. This block should show on on the Article node page. What ...
-4
votes
1answer
53 views

hi. i have question need help [closed]

I have one vocabulary including the following terms: laptop laptop dell laptop hp laptop asus Server Intel server Ibm server intel server I want to create a block view listing so that when I ...
0
votes
0answers
5 views

Is using views to display information of one contenttype combined with user info bad practice?

On a Drupal 7 website I have a content type for which I would like to create a page that also contains user specific information. It is not a collection of data it is just like a content type display ...
0
votes
1answer
11 views

Filter nodes matching user account field [list (text)] using different field names but same key

There is a field of type list (text) [field_list_user] on user accounts and a field of type list (text) [field_list_node] on nodes. Both fields have exactly the same keys but different labels [and ...
0
votes
1answer
25 views

Views: Display block based on taxonomy term

I have a vocabulary (Alive or Deceased) that has 2 terms (alive and deceased). If the node is under "alive" category there should be displayed block A, otherwise no block should be displayed. How can ...
0
votes
0answers
16 views

Views, tabs and arguments

I want to have 2 tabs for my view. I made the following view with views: /katalog (page) /katalog/%/immobilie (page_1) /katalog/%/immobilie/map (page_2) The views has a contextual filter argument. ...
1
vote
0answers
18 views

Is it possible to make an exposed filter dependent from a contextual filter?

it seems like it is a trivial and common use case to me, but I have not found a solution so far: I have several vocabularies and I want to deliver a vocabulary via url into a contextual filter and ...
0
votes
0answers
5 views

Complex views, pages and redirect configuration

I'm going to describe the setup and what I was able to achieve so far. I have many taxonomy terms, which I don't want to be accessible and some which I want to be accessible via URL. I have persons ...
0
votes
0answers
3 views

Commerce View With Multi-Value Entity Reference For Related Products

Commerce Kickstart 2. In the Product Edit form, I created a multi-value field called 'Product Accessories', which lets one multi-select from the list of Products to indicate related products. I ...
1
vote
0answers
12 views

Contextual filter on content ID returns 404 in drupal 8 beta 2 [closed]

I'm trying to show a list of all articles available but filter that list by URL argument if that's available. So basically: http://myhost.com/article_listing/ Should show all articles Works ...
0
votes
1answer
21 views

Hide view programmatically

I need hide view when some GET param exists. It should be hidden like if you insert 'Global: Null' in contextual filter(It hides view if no results). This view placed in panel* I tried find the ...
0
votes
0answers
6 views

Private Taxonomy Terms and views contextual filter: arguments/ fields of the owner

When creating a View of Taxonomy Terms and enabling the Private Taxonomy Term Modul, there is the possibility to set a contextual filter to "Private Taxonomy term: Content owner". However for my ...
0
votes
0answers
20 views

How to change the operator for a views contextual filter?

I am using the views module to present data as a table (block) from a mysql database. The table is filtered based on the raw value from the pages URL path. View only allows for the contextual filter ...
0
votes
0answers
12 views

views, contextual filters with different views pages and themes

my problem is to use the same internal path for different pages. I know that this is not possible, but perhaps anybody has a way to solve this. Assume there is a catalog with a list. The catalog has ...
0
votes
0answers
20 views

Display certain nodes based on user's proximity (i.e. “local” homepage vs “non-local” homepage)

(Using Drupal 7) My client's website has a series of blocks with a custom content-type of "Call To Action" (CTA). They would like to customize the homepage and show certain CTA nodes to local ...
1
vote
1answer
25 views

Contextual filters multiple value title

I've added title override %1, to contextual filter. Filter uses taxonomy to get nodes. If I open page "catalog/1" I get title from term1 with all the content If I open page "catalog/2" I get title ...
0
votes
1answer
14 views

Dynamic view with a field matching a role of User in Drupal 7

On my site, the nodes are restricted based on user's role. Admin selects any number of roles in a field (field_role) when creating a node and if any logged in user's role matches one of the selected ...
0
votes
0answers
11 views

How to display Filedepot Listing Block on organic group page?

I already spent too many days looking for a solution so I finally decided to ask for help ! I want to display the block name 'Filedepot Listing of the viewable folders for user' on a content type ...
0
votes
0answers
21 views

Moving the a view Contextual Filter default value(“PHP Code”) to a module code

I am really wondered to know how I can move my designed view's Contextual Filter default value which is being provided by my written code as PHP Code, to a module code or a hook. Is there any ...
0
votes
0answers
16 views

Override Taxonomy Term Path to Contextually Filtered View

This may be highly specific, but I still think it has value for sizable number of applications in the wild, so here we go: I have a View established using Contextual Filters The Contextual Filters ...
0
votes
1answer
26 views

Drupal Commerce Catalog Views - Strange Issue with Displaying info of current term

I have built a series of views to build a Drupal Commerce display for products based on the Taxonomy terms of those products. These terms have a hierarchy. There are nearly 40,000 products being ...
0
votes
0answers
14 views

Node view, reference User and Profile2 fields

I am trying to accomplish the following. I have a node view that shows fields based on the nid contextual filter. This I use mainly for formatting purposes. I then added a content pane where I want ...
0
votes
1answer
24 views

Contextual filter on taxonomy view using URL

I have a taxonomy Bubble Clouds Flower I also have a pages where I need to be able to pull a taxonomy term (and it's fields) into the page. if the site path is abc.com/features/bubbles I need to ...
0
votes
1answer
15 views

How can I embed view results right in the content region as if it's part of the content?

I have a node type with some entity reference fields that displays teasers. I also have a block view that takes a URL component to display related nodes that are not referenced on the node's entity ...
1
vote
0answers
21 views

How to create a View that shows a node from the URL inside the admin area?

I have a certain node type that I want users to be able to view using the admin theme. I have a view that provides a list of this content at admin/foo/list. I'd like to create a view with a ...
0
votes
1answer
15 views

How to filter on taxonomy term but only match one field on the node, where two fields (primary and secondary) both use the same vocabulary

Using Drupal 7 Views > Contextual Filter, how can I filter on taxonomy term but only match one field on the node, where two fields (primary and secondary) both use the same vocabulary? I have a ...
0
votes
0answers
18 views

View Contextual Filter doesn't display created taxonomy term

I want to display a list of promoted products in a particular View, different of the default Product Catalog of Commerce Kickstart 2. I created a taxonomy term "Highlights", to correspond to these ...
0
votes
0answers
17 views

Exposed form for contextual filters

I have a View with some contextual filters which works great. I also need to provide my users with some way to change the filters once they're on the page. I've tried using exposed filters but I'd ...
0
votes
0answers
9 views

How can I use a field, to sort by tags in a view?

I have a content type, "profile", with 3 fields: Title, City and State and I want users to enter in text for those fields each time they use this content type. I have another content type, "event" ...
0
votes
1answer
22 views

Dynamic Views Pages - How to add in meta tags to these generated pages?

I have 1000s of dynamically generated views pages using contentual filters. I want to be able to take certain keywords from these generated pages and add them to the on page meta tags. Currently I do ...
0
votes
1answer
50 views

Show user content in taxonomy term page

I'm using References module to use User Reference field in Taxonomy Term page. I have added new Term called "Matt's books" with user Matt set in User Reference field (field_user). User Matt has ...
0
votes
0answers
21 views

Views Filters: Show only terms from parent term when contextual filter provided

I have a Vocabulary with a structure like: Term A Term Z Term Y Term X Term B Term W Term V I have a view that uses contextual filters (/section/%), such that when a user visits ...
0
votes
0answers
23 views

Dynamic dependent field with entity reference and organic groups

I created a node type "friendly match". In this node type I got a field "club" that is an entity reference/ og reference to the "club" organic groups of the current user. The second field named ...
0
votes
0answers
13 views

Get OG membership from a node, get Users from OG membership, and show content whose User field belongs to the group

I've been reading up on relationships and contextual filters and have managed to figure out the basics, but I'm still a bit confused on how to properly join tables. I am creating a View that will ...
0
votes
0answers
20 views

Views: show a list of users-profile who have multiple taxonomy terms?

I'm trying to set up a contextual filter that creates a list of profiles who have all the taxonomy terms the user choose. I understand that there is no contextual filter like "User: has taxonomy ...
0
votes
1answer
11 views

View Contextual Filter format for Block

I have created a View on my /blog/ page for displaying blog articles. For layout reasons this view is in a block. This view has a contextual filter for Taxonomy tid on node and, since it is a block, ...
0
votes
1answer
16 views

node access by related fields

I have created the following List field type of checkboxes to allow users to select their own content's privacy settings when creating a node called RideShares: 1|me only 2|any registered site member ...
1
vote
1answer
28 views

views pass argument for number of records to display to pager contextual filter?

Drupal 7. Is it possible to pass an argument to the contextual filter to limit number of items to display in a View from the UI? IOW: can you pass an argument that replicates the Number Of Items ...
1
vote
2answers
37 views

How to use a field other than node id or term id as contextual filter?

I have a content type "Person" which has a field called "state". On the node page of any "person", I want to display other nodes of "Person" which has the same value for the "state" field. For e.g. If ...
0
votes
1answer
12 views

How to add another filter to TVI default page view?

I have the TVI module installed but I wanted to add one more contextual filter currently: mysite.com/taxonomy/term/[term of tags vocabulary] what I want: mysite.com/taxonomy/term/[term of tags ...
1
vote
1answer
48 views

Contextual filter only working on one URL

I've been going through posts such as View block not accepting contextual filter argument, Contextual filter on Views Block file not found, How do I get a block to use a URL to configure a contextual ...