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

learn more… | top users | synonyms (1)

0
votes
1answer
10 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 ...
0
votes
0answers
14 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
12 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
10 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
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(); ...
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
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 ...
0
votes
0answers
29 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
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 ...
3
votes
1answer
32 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
8 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
13 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
77 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 ...
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
1answer
19 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
18 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
22 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 ...
0
votes
1answer
9 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
18 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 ...
0
votes
1answer
12 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
22 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
33 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 ...
0
votes
0answers
42 views

Custom views filter

In Drupal 8, I have a view that gathers all the nodes built in my Gallery Hours content type. The content type has a field called View Order that I use for another view that displays the list of ...
0
votes
0answers
9 views

Remember last selection option not on all exposed Filters

On some of my exposed filter I have the option for checking "Remember last selection", but on some filters (For example taxonomy filter), I don't have the ability to check Remember last selection. Is ...
1
vote
1answer
32 views

Why am I getting empty input value on expose filter $form_state variables for taxonomy?

I have created a panel. Inside the panel there is one content pane and one view expose filter present. Normal exposed filter works properly but Simple hierarchical select does not works as expected: ...
0
votes
1answer
18 views

How to execute some js code after click on expose filter AJAX enabled submit?

I have try to update the input value of a expose filter field before submit of the expose filter through Js. What i have tried $('#edit-submit-phrases').on('click', function() { alert('check'); ...
0
votes
0answers
12 views

How to get view expose filter input inside a panel?

I have crated a panel with a content pane and expose filter block. Both works well. Problem is that if i create a filter using "Simple hierarchical select" widget for taxonomy term. i am not able ...
0
votes
1answer
28 views

Exposed Filter Fulltext Search having the Searched fields as options along with the text box

I have created a exposed fulltext search filter with the searched fields["tile", "Description","Keywords"]. This brings the widget to the form as a textfield, which searches the input for all the ...
1
vote
2answers
45 views

Drupal view filtering users by last access never

I have a view in Drupal 7 where I am trying to show all users who have a last access value of never, meaning they have never logged in. The filter however expects a Date value which is no help to me ...
1
vote
1answer
25 views

Place text below exposed filter

I have a Drupal view where I would like to enter some text in between 'Exposed Filter' and 'Content' sections. What is the safest of doing this? Attached image shows exact location I need text ...
1
vote
0answers
11 views

Views: Content grouped by 2nd level taxonomy term

I want to create a view that accepts parent taxonomy term as contextual filter. And it will show the content grouped by its child taxonomy terms. For example if the taxonomy has Top Term1.0 -- ...
0
votes
0answers
18 views

How can we apply group_concat using views?

Is there any way we can apply group_concat clause using views and without applying any customization to views ?
0
votes
0answers
13 views

How to add a form_token to Views exposed filters?

As per the Acunetix scan report, I need to add form_token for drupal views exposed filter. How could I achieve this?
0
votes
0answers
9 views

Basic filter that can be expanded to include additional filtering criteria

I have several filter criteria for examining different classes based on location,meeting time, etc. All the different filter options take up a lot of space and can look overwhelming to a new visitor. ...
0
votes
0answers
20 views

How to add a textbox in views filter criteria

There is a view in my site that has filter criteria. I need to add an extra textbox in views filter criteria then based on its value, remove some of the results. This textbox is not in any of the ...
1
vote
1answer
18 views

User select the filter criteria current_salary_range is 20000. I will show the results also salary range below 20000

I have created the content type named candidate_profile, included fields like Current_Salary_Range. I have created a view and also I am using better exposed filter for current_salary_range field. My ...
0
votes
2answers
22 views

Filter in view with some dynamic value

I have a content type, have a integer value field suppose field name is "field_xyz" and I have also variable from variable tables (variable_set('xyz')) which have some dynamic value Now I want to ...
0
votes
0answers
11 views

Creating a data export view from an existing display

I have an existing complex page view with 16 fields and 13 exposed filters and sorting criteria. I'd like to create a "Data Export" display from this display that carries over all the fields and ...
0
votes
2answers
47 views

How can I have Exposed filter of Flag type in views?

I want to add Exposed filters of flag types in Views. I have many flag types and I want users to be able to select their favorite Flag type to show result.
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 ...
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
0answers
10 views

Show selected filter and cross button right to it for removing filter

I am working on drupal 8. I just created a view with solr index view and created some filters. I want that after selection of filters, the selected filters must be displayed on the top of page with ...
0
votes
0answers
29 views

Views - exposed date filter adds a timezone offset in query

In Drupal 8, when creating a view with an exposed filter on a Date field (which is in date only mode), the resulting query removes some hours based on my timezone. I'm in the UTC+2 timezone, so a ...
1
vote
2answers
33 views

Views taxonomy for multiple content types

I have three different content types: News, Events and Resources. They all use the same set of taxonomy so that all content is tagged with the same categories. I want to build a view with the ...
0
votes
1answer
31 views

how to alter exposed form values before submit for filters in drupal7 view

I want to do left and right trim when end user enters data in textbox for filter list of rows in drupal 7 views
0
votes
0answers
26 views

Using MEFIBS (More Exposed Forms in Blocks) in Blocks

I know this may sound redundant but It isn't. The MEFIBS module allows to put the exposed filters form of a view in a block, which later you can place wherever you want in the page but also wherever ...
0
votes
1answer
22 views

Filtering comment by date range in Views

I have created a view to filter comments by date range. For date range i am using between operator. View type : Comment Date : comment created (default field) Issue : When i am trying to filter ...
0
votes
1answer
14 views

Filtering date fields in Views - How can I test for NULL

* QUESTION EDITED - was previously two separate issues, now limiting question to one issue only * When I add a Date field to the Filter criteria, I get a choice of operators "Is less than", "Is less ...