Views filters allow to filter the content shown in a view.

learn more… | top users | synonyms (1)

1
vote
0answers
14 views

single exposed filter for two displays in same view

I have three displays in same view. Every display has exposed form filter and in every pages ajax was set yes. How to use a single exposed filter for these three displays in same view? I placed these ...
0
votes
0answers
15 views

Getting distance information on custom data table with Views (Drupal 7)

I am using Views to display a custom table (locations). I have everything setup properly but now, I would like to get the distance from the current user to display. I have first tried to get a ...
3
votes
1answer
46 views

How do I change the default '- Any -' option in views exposed filter?

I have exposed filters in a view as select lists. How can I change the text for the default filter option of "- Any -"? In previous versions it was suggested to use a preprocess function like this: ...
1
vote
0answers
40 views

how to filter view content by field value?

I have one content type (article) and in that I have created field "Article category" which is Term reference. I have created a view page where I am displaying (content title, Article category and ...
1
vote
0answers
11 views

Drupal 7 views filter content by owner on/off checkbox

I create View with Leaflet map, I have filters content by taxonomy terms (checkboxes), but I can't figure out how to create on/off checkbox content filter by the owner to show only own added content. ...
0
votes
1answer
25 views

Filters dropdown based on a parameter

I have a taxonomy, say 'Unit'. Besides the name of the Unit, there is a field called 'SubUnit'. All users in my Drupal site have assigned a Unit. On the node add forms (and on the Views, for ...
1
vote
0answers
12 views

views attachment geoloc exposed filter

I am trying to create a list of shops using views as a html list and also as shop icons in a ipgeoloc map. Both these views will need to use post code taxonomy as its exposed filter field, I am having ...
0
votes
0answers
20 views

Can't see the exposed form widget after adding filter criteria in Views

I need to add the widget to my filters that users would use (check) when they want to see content authored by users with phone number. I have "phone" field in user profile. I created relationship ...
1
vote
0answers
19 views

Error When Clicking - Add Another Item - An AJAX HTTP request terminated abnormally [closed]

On drupal 7, I have a problem with a form. Render content type form in drupal 7 everthing working fine but I created a Field Collection, when I click Add another item this error occurs /***********...
0
votes
1answer
24 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 ...
0
votes
2answers
29 views

Views Exposed Filters AND result for multi select field

I'm working with a view with exposed filters for a directory style page. One of the filters is a multi-select check list, however, we want the results to return AND results only. It is currently ...
0
votes
0answers
28 views

how to redirect exposed filter search box input result

Result +================================================================== Displaying as a BLOCK VIEW on click of submit results should be displayed in new page. instead of showing below to ...
0
votes
0answers
14 views

How should I set OR operators between filters?

I'm maintaining a legacy Drupal 6 site that is running Views 2. I'm building a view that displays content of three different types. One (and only one) of these three content types has a checkbox field,...
1
vote
2answers
16 views

Possible to use tags/buttons as exposed filters?

I have a view that will be a grid of a dozen content types. I would like to have a tag-like button or text link above the view of content to allow the user to toggle / filter between what content type ...
0
votes
0answers
23 views

How do I show a list of user that don't have an article created for a specific year?

I have a strange query with views in Drupal 8. How do I get a list of users that have not created an article nor any other content published in a given year (2015)? I've been wrecking my head ...
0
votes
3answers
43 views

Exposed filter selectbox dropdown for a textfield

I have a textfield for one of my content types and there are many unique results for it. I am trying to create a View of this content type of this textfield as an Exposed Filter with a list of all the ...
1
vote
1answer
36 views

How to programmatically load a rendered view exposed filter block

I'm in Drupal 8 trying to load a Views Exposed Filter block based on its ID, similarly to how I would load a content block. $bid = 'exposedformview_nameview_display_name'; // Found on mysite.test/...
3
votes
1answer
23 views

Allow anonymous user to search custom account field

I have a custom account field called license number. How do I allow anonymous users to search for that license number and, after they select it, view that user's profile?
0
votes
2answers
21 views

Hide views tab display on user profile to profile owner

I have a use case where I need to create a page for members of two specific roles (Contributor and NAD Contributor) to see their own unpublished content. Using views relationships and filters, I've ...
3
votes
2answers
77 views

Fill filter between (min, max) field programmatically drupal

I have created the view. It displays all comments from a certain time period. So I need filter created date and between option, isn't it? But also I need to get these MIN and MAX options from node: ...
1
vote
1answer
50 views

How to hide a block in a view when an exposed filter is being applied?

I have built a view with exposed filters. There is a 'popular content' block on this page which I am controlling using the Context module (https://www.drupal.org/project/context) I would like it so ...
0
votes
2answers
14 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 ...
1
vote
0answers
15 views

Is there a way to merge / update result rows in Views with AJAX rather than the default which replaces the whole view div?

In a view with Use AJAX:Yes we see that upon filtering we get a completely new set of results and the div.view is completely replaced. Is there a way to merge rows rather than replace all rows? i.e. -...
1
vote
3answers
22 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" ...
2
votes
1answer
52 views

How to use views exposed filters in d8?

I have a view like as follows using exposed fliter fields in d6 , how can i recreate like that in d8 ? Here the from date and to date is to be selected and result will come accordingly for the date ...
0
votes
1answer
22 views

views_query_alter Matching all values in IN clause

I have a content type with a list(text) field. In which the admin can set multiple values on the field for the content type. Using a view the information is exposed to the end user. The views has a ...
-1
votes
1answer
16 views

how to show date filter by next 5 months via expose filter in drupal?

I have a content type with date fields . For date I am using date module. I have created a views in drupal 7 and using exposed filter. I need to show filter my data via month , Means I need to show ...
1
vote
0answers
30 views

Filter taxonomy terms view by a term of another taxonomy of the same node

I have a content type "Product" with 2 taxonomies attached - "Brands" and "Product Types". Brands: - Brand 1 - Brand 2 - Brand 3 Product Types: - Glasses - Sunglasses - Contact Lenses -...
0
votes
0answers
16 views

Change text in popup exposed date filter

I have an exposed popup date filter that selects by day. When a user sees it, it looks has this text: May 28 2016. Would I be able to edit it so that it would look like "May 28th, 2016"? I am using ...
0
votes
0answers
12 views

Sort items by the value of specific attributes/properties selected by the user

What's the best way to go about achieving the following? I have a number of items, each with different values for a set of properties. For example I want the user to be able to identify the most ...
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(); ...
0
votes
0answers
6 views

Populate an exposed filter textbox to select box with available result options

I have the following view that lists the job openings at different offices of the company. But I want to be able to filter out only certain roles and only display that office. Currently the roles is ...
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
43 views

How do I combine title and body as a filter programmatically?

Attached upon the existing exposed filter, this code enables title and body to be separately selected and to be searched separately but it needs the addition of 'all' option. I have difficulty joining ...
0
votes
0answers
12 views

Pass value from browser to an array

I have built some javascript modifications to an exposed views filter form. I want to add a value to the exposed_input array, basically, a way of keeping track of what was last clicked. I want the ...
1
vote
1answer
43 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 ...
3
votes
1answer
52 views

How to change the autocomplete for a user reference to show First/Last name instead of username?

I want to add a user reference field to an "event" content type, and reference the user who will present. But I wonder how to change the entity reference - I've tried using the "filter by an entity ...
0
votes
1answer
9 views

How to search by hierarchical taxonomy in views?

I have a view with a Global: Combine fields filter with some fields, one of theese fields is a hiererchical select field of a taxonomy terms. But it doesn't work. How can I set a search box to search ...
0
votes
0answers
19 views

after ajax callback, how to alter views exposed form

Look at my code is there any other way to do this. I tried to change my form element type in my exposed view filter after selecting any dropdown menu and my dsm($form_state) not showing any [values] ...
3
votes
3answers
95 views

Treating string field as numeric to use as an exposed filter

I have a field in my users' profiles that has been defined as varchar initially even though it holds numeric values. I'm trying to use that field as an exposed filter and perform "greater than or ...
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 ...
0
votes
1answer
20 views

Custom field in a view with a link

I created a view listing some Articles, but displaying a custom field I added to the Article content type instead of the usually used title. When I would display a title instead of the custom field, ...
1
vote
2answers
19 views

How can I construct a table view with columns passed as a parameter?

I have a content type, referenced by multiple subsequent content types and at some point I made a spreadsheet with all that data. My new assignment is to display a view like that and then export it to ...
0
votes
1answer
23 views

Which hook occurs last before rendering the exposed filter widgets?

I'm trying to edit the variables that go from Views into the form array editted by hook_form_alter() and the tpl file views-exposed-form.tpl.php. Specifically, I'm trying to use the contents of $view-&...
0
votes
1answer
10 views

How to disable one sort/direction combination from a combined Better Exposed Filters field?

Over at this previous question I figured out how to give a view a list of options that look like this: Sort by Date - Newest Date - Oldest Price - Highest Price - Lowest Suppose ...
1
vote
1answer
27 views

Different “Asc” and “Desc” labels for different Views exposed sort fields

I have a view of Commerce products that, as is standard for e-commerce product listings, can be sorted by price or by date. I'm having trouble with the sort direction labels: In the context of dates,...
0
votes
1answer
16 views

How to theme one specific Views 3 exposed filter form template and HTML?

I know of two ways to theme views exposed filter forms in Views 3: Copy the file views-exposed-form.tpl.php in sites/all/modules/views/theme to your theme folder and edit the HTML directly Use ...
0
votes
0answers
8 views

How do I set an exposed date filter to allow any value, empty or not empty?

It seems that most view field filters allow the setting 'any', or leaving it empty, to basically disable the filter. I don't see a way in a date field to do the same. I have a date with selectboxes ...
1
vote
2answers
23 views

Don't apply sort criteria by default

I added sort criteria by price to my catalog view, and in the sort criteria I have only to option to use by default one of them - Ascending or Descending. But I don't want to use any sorting by price ...
1
vote
0answers
52 views

Expose date filter in view

How can I configure an exposed filter so that users can filter my site content by creation date, preferably using a date picker? I tried using Content: Authored on as filter, but it gets me a text ...