Questions tagged [views]

The Views module allows creating lists of entities with a flexible query builder.

Filter by
Sorted by
Tagged with
0 votes
2 answers
848 views

Show all events that are active between two dates chosen from exposed date filter

I have a problem in showing views results with an exposed date filter in D7 views 3.x. problem We have several events with a date field. It is required to fill in a start and end date. We want a ...
0 votes
0 answers
23 views

Customize search results page

Is there a specific way to customize the search results page in Drupal 10? I would like to change the look of how the results are displayed. I have used Views to create the look how list items but I ...
0 votes
2 answers
671 views

Change output of a field with PHP field?

I'm constructing a view in Drupal 7 with a field called "Content: Fruit". If the value of that field is "lemon", I want to change the output to "citrus". How can I accomplish this? Here's what I ...
0 votes
1 answer
1k views

How to add embedded YouTube video at the end of ViewSlideshow

I have a Slideshow view which loads two fields, main images ('group multiple values' unchecked to create rows) and video ('hide if empty' checked). It takes these from one node which it gets from the ...
0 votes
1 answer
57 views

if statements in fields template

I am trying to display a field using the following code, but it does not work. {% if fields.field_apply_now_url %} <a class="btn common-btn-blue" href={{fields.field_apply_now_url....
0 votes
2 answers
382 views

Linked entity references in a content type

I am unsure if this is possible in Drupal 7, but here is my problem: I have 3 content types, A, B and C. B and C refer to A through a field field_A (entity reference). C refer to B through a field ...
1 vote
1 answer
775 views

How to get Final SQL query when using Views?

How do I get complete SQL query from Views, the one I could run in mysql directly.For example biggest stumbling block is fields part. Like below SELECT users_node.uid AS users_node_uid, node.created ...
2 votes
2 answers
1k views

Map or Edit Query String Values in Views?

As part of a port of a non-Drupal site to Drupal, I need to map a url query string to filters. For example, if I have this query string and slect filter selected on Site A (Non-Drupal) Site A Value ...
0 votes
1 answer
25 views

Using views_query_alter() hook to dynamically add a OR "where" to a Search API View?

We have a Search API View that we need to dynamically include results to the query that where filtered out. The use case is that the Search Index View shows a filtered list of node but we have a ...
1 vote
1 answer
634 views

Why my query string generates page not found for my view?

In Drupal 7 I'm using a view export to download information for my orders. If i go to the default url /admin/commerce/orders then the page downloads correctly. However, I also have some filters so I ...
0 votes
0 answers
13 views

How to show content / blocks in views for path component 3, 2 OR 1?

The taxonomy contains mostly 3 levels, sometimes two levels only. Parent Child 1 Grandchild 1 Child 2 Via path alias, the patterns create URLs like: /parent/child1/grandchild1 /parent/child2 ...
1 vote
1 answer
361 views

Couldn't avoid duplicates and merge rows on my views

I have a view of list of contents referenced in many others content types in my site. Lets talk about just 2 content types : A content type called container is referenced in a content type position, ...
0 votes
1 answer
21 views

trigger('RefreshView') problems with pagination

Colleagues, can you please advise: there is a views with enabled ajax and pagination, there is a form on the page (also ajax, but not views), which makes changes to the displayed views values. To ...
2 votes
1 answer
998 views

Display content based on URL

I am working on Drupal 8. I have a to display content from a content type on different pages. I am trying to use Views to achieve this. In the content type I added a field to refer to Pages so that ...
1 vote
1 answer
744 views

Override breadcrumbs is not present?

In Drupal 7, in the views with an argument, is easy to override both title and breadcrumbs. Now in Drupal 8 I can't find the option. Did I miss something? or isn't possible? In this case what is ...
3 votes
1 answer
541 views

Sorting a view on a taxonomy term with entityqueue

I'm trying to use an entity queue on a taxonomy to create a new sort order for an existing view. But I'm having trouble configuring it. I've created a dummy website with a fantasy role-playing game ...
1 vote
2 answers
868 views

How do I output XML schema?

I have set the REST server with the Services module. Also I've installed the Services Views module, created a new view that outputs the desired fields into XML. That's working fine. How can I add ...
2 votes
0 answers
1k views

Hide options with no results

I have a view block that displays products (a content type). This view uses AJAX and has an exposed filter to sort results per taxonomy terms (product categories) in specific contexts. I want the ...
0 votes
1 answer
899 views

Broken/Missing Handers in View

So one of my views has a few broken/missing handlers. It was working fine up until yesterday. I run composer update --no-dev --with-dependacies and a lot of files updated. After which i run drush updb ...
1 vote
1 answer
362 views

View is rendered as "empty" even though the query returns results

I've got a Drupal View that I expect to return some results, but when I look at it (logged in as user 1), the empty result message is displayed. I turned on the setting which tells Views to output SQL ...
0 votes
1 answer
1k views

view exposed filter ajax error coming for non administrator user

I have event calendar module which is perfectly working fine. For some other users (non-admin users) I have to give permission to access events posted by them (They have permission to view the ...
0 votes
1 answer
579 views

How to create a chart about a date range if some dates in this range are missing?

I use charts module Charts and I want to create a view that shows the stats from a date range. I have an exposed filter and this filter has a between range. I want to show all dates from values of ...
0 votes
1 answer
479 views

How to comment on image in colorbox (modal form)?

I have created view to display images and also user to display it in popup using Colorbox trigger in view. I want to allow users to comment on each individual image in modal form only. Just like ...
0 votes
1 answer
375 views

Why is an entity reference view field only showing one view result?

I have a form field on a node create form that is an entity reference, referencing a view that displays all of the appropriate results. The view displays users with a relationship to a content field ...
0 votes
1 answer
620 views

View that shows all children content of parent

Been searching and cannot find this anywhere for Drupal 8. Very basic view request, can't figure out why it's not straightforward. I want a View that shows Parent content and under it all Children ...
0 votes
1 answer
705 views

How to filter Search API index view by taxonomy parent

I am using the default database server that comes with search api. I have the Hierarchy Index ticked and I also have the taxonomy field that I want selected. Could someone give me instructions on how ...
1 vote
1 answer
466 views

Views, Taxonomy, multiple parameters using contextual filters

A view has been created to display related content types via their taxonomy terms, using contextual filters. Currently the view is able to display content based on the first param eg. about The goal ...
1 vote
1 answer
630 views

Menu Block won't display when a page has a view block

I have the Menu Block module installed to provide some contextual menus for certain areas of a site. These generally work great. But I have a few pages where I'm adding a Views generated block to the ...
2 votes
1 answer
1k views

How to get an export option as a pdf for views?

I am using views on my Drupal site I can able to export my view in csv, but I am not able export my views as pdf I need to export my view as pdf. Any suggestions on this it will be very helpful, ...
1 vote
1 answer
483 views

Is there a way to set two separate views with exposed filters in a panel page?

I have been attempting to create a panel page with two columns, one to display view1 and the other view2. The intent is to have the user choose a content type in each column using exposed filters and ...
0 votes
1 answer
14 views

Display the last page in a BOOK content type as a link?

I'm currently using the core BOOK content type as a form of discussions. I created a views page with all the books and titles exposed. But I also want to append the last page of the book in the Views ...
1 vote
3 answers
127 views

How to ignore opening quote in views sort

I use views to display a sorted list of book titles. Titles that begin with a quote are listed first. I want to ignore the quote for sorting purposes. So, instead of: "Once Upon a Time": Fairy Tales ...
0 votes
1 answer
11 views

Displaying all pages in a BOOK teaser block within a block

I'm trying to display all the BOOKS in my site as a teaser block with the pages below it. Like this: Title: This is the book of my Cat Page: 1 2 3 4 5 6 7 8 Title: This is the book of my Dog Page: 1 ...
0 votes
1 answer
741 views

Filtering a glossary view

I have a glossary view, which is just the one that comes with Views. I want to allow users to filter the results by taxonomy terms (dropdown) and also by title (search field). The problem I'm running ...
0 votes
2 answers
859 views

Exposed filters in Block for Page View do not filter results

I have below content types with following related fields setup in a Drupal7 setup. Activity Fields: Name, Body and Image. Event Fields: Date Location: Term Reference for Taxonomy Location ...
0 votes
1 answer
96 views

How to remove duplicates in view using hook_views_query_alter

I know that this question turn around in Drupal answers but I couldn't get a working answer for my use case. Here it is: I have a view which is producing duplicate results (and I understand why) but I ...
1 vote
1 answer
1k views

Broken/missing handler error for my custom views filter?

I am trying to write a custom filter for views. The goal is to filter by alias, but that's not important now. It seems like I am missing a step to get view to recognize my filter hander after adding ...
1 vote
1 answer
37 views

How to add condition via views_query_alter() that does not contain a value?

I have _views_query_alter() hook that I need to filter out nodes whose multi-value select does not contain a value ("National"). The code below works to show the nodes that do contain "...
3 votes
3 answers
785 views

Splitting exposed form filters amongst several blocks

I have a views search page in D8 where I'm I have exposed filters that are shown in blocks. I'm also using search facet blocks. What I want in the sidebar is the exposed filter text search field, ...
1 vote
1 answer
633 views

views with multiple contextual filters - should return data only when both or any one filter is present

Views of content is having two contextual filter. For some reason node object is available to views so it is passing through url's 7th argument. 1.Content: Has taxonomy term ID Configuration: Php ...
1 vote
2 answers
686 views

Views merge rows: merge uniques values and show the first one

I'm using Views merge rows to grouping rows by some fields, It worked good for me, but in some fields I want to show just the first filled value that means: merge uniques values+use the first value. ...
1 vote
2 answers
989 views

Pager labels aren't translated

I have a site using Drupal 8.4.1 with all core language modules enabled, 3 active languages, and where English is the default language. The pager labels (e.g. "Last »") for my own views aren't ...
0 votes
1 answer
682 views

Views Bulk Operations Checkboxes check on click

I do search for a specific option in bulk operations. For now, when I click somewhere in my row, the checkbox for the bulk operation gets selected, but I want a user to directly click on the checkbox. ...
2 votes
1 answer
543 views

Views Grouping field:Add Ordered class to Grouping row

I use Views and Grouping field to integrate my data. But i need each grouping row ordered. I want to override the views-view-grouping.tpl.php, and change the "view-grouping" class to "view-grouping-1"...
0 votes
2 answers
2k views

Programatically change exposed filter value based on another exposed filter

I have 2 exposed filters in my Drupal 8 view - both are select dropdowns. I want the value of the 2nd filter to change based on selection of first filter Here are the filters $filters = $view->...
4 votes
1 answer
2k views

Watchdog table growing out of control

I have seen similar questions to this before but they do not solve my problem. This is Drupal 8. Today the watchdog table on one of our sites exploded to 12GB in size. No other table in the DB is ...
0 votes
1 answer
483 views

How can I display the Google rich snippets when a view is on "Show: fields" and the panel enabled?

I am building a site using Drupal 7 and the schema.org module and the microdata module. The site is live on production server (and works good). When checking a url from my site site on the google rich ...
1 vote
1 answer
938 views

How to change values views exposed filter based upon view results?

I have a view which, in addition to showing event nodes, also shows "fake" event nodes. The "fake" event nodes are inserted in hook_views_pre_render(). The view also has an exposed filter to filter ...
0 votes
1 answer
495 views

Theme UberCart catalog page to use custom html

Working with Ubercart 3.x on Drupal 7. I want to theme the /catalog/1 page, where it shows my products. I want to use completely custom html that has divs nested with tables nested with divs. I ...
0 votes
1 answer
888 views

Search API group by issue with views

I have a content type thats is called course which has a field that is a reference to a taxonomy called category. My specification tells to build a search where users can search for the course title,...

1
2 3 4 5
303