Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [views]

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

0
votes
0answers
3 views

How to display a message to a user, with the selections he/she has made from the contextual filter in drupal 7 views?

I have a view with more than one contextual filters. For example, filter on Age, and Gender. if the filter is on Age, and/or gender I would like to display a message to the user regarding the ...
-1
votes
0answers
9 views

Views showing old and new values

We've just migrated our site from on premise server to aws 4ec2s behind lb. Now we're having strange issue that when user made changes in to a node, which goes into the database. But when views try to ...
0
votes
1answer
10 views

Sum the value of all nodes fields and display them on the taxonomy page

How to get result like on the picture? I created taxonomy term - Coins with two nodes. A field_coin_price is attached to the nodes. Using the View I can easily display the number of coins (nodes) on ...
0
votes
0answers
12 views

preprocess views send arguments to facets

I am trying to filter user ip on the template.theme file on drupal 8 and the intention was to filter on user ip and based on the ip add in the correct arguments into the facets that is created in ...
1
vote
0answers
9 views

Create a view of nodes that are not referenced in any entity reference field of another content type

How can I create a view of nodes that are not referenced in an entity reference field assigned to another content type? I have a Profiles content type and a Publications content type. The ...
0
votes
0answers
13 views

Show the nodes number of a parent taxonomy term?

I have parent taxonomy term (Coins) and a few child terms. Coins Dollar Half dollar 1 cent I show the number of nodes in a current taxonomy term using next method. Create a Taxonomy Term view (...
0
votes
1answer
18 views

View using Path

I'm having an issue combining the use of taxonomy terms, URL alias patterns and views. Here's my setup: 1) Taxonomy: A basic taxonomy, lets call it "Blog Tags". In here I have a term like Mountains. ...
0
votes
1answer
10 views

Create link to email all views results

I have a view that outputs a list of email addresses. I'd like to find a way to set up a mailto: link that contains all of those as one comma-separated list. Could anyone advise?
0
votes
2answers
15 views

How to display fivestar average infos?

I am building a view with fivestar infos under the voting widget which look like this with the views preview: But it is rendered without the infos in the page: In both cases I'm an admin user ...
0
votes
0answers
33 views

How to prevent views to replace single quotes with double quotes in HTML output?

I'm using the rewrite option of a view field to generate some HTML. One tag has a data attribute, which should contain an array for later use in JavaScript with JSON.parse(): <div data-image-src='[...
1
vote
1answer
18 views

How to create a view to count comments per user?

I am trying to create a view with a table that shows all the users and the total number of comments that user posted in descending order. I am not sure what I am doing wrong but I spent hours on this ...
0
votes
1answer
21 views

Show multiple term references as ID in one row

I've got a view of nodes, displayed as fields. As each node may have references to multiple terms/tags, I would like to show all these tags. When I use field "term_node_tid", then I get the multiple ...
0
votes
1answer
32 views

Where are the Views located?

This is related to this question I asked. Bottom line is that for some reason some junk view is stuck under the Views list and when accessing the List I get a WSOD. I confirmed that is a view issue ...
0
votes
0answers
17 views

Help with views and/or hiding exposed filters

I have right now a view built for a particular content type we will call a "Part". There is then a " Parts" vocabulary to ascribe a taxonomy term or terms for sorting that content in my menu. ...
0
votes
1answer
57 views
+50

WSOD on views list page

I get WSOD when I try to access the views page (admin/structure/views). I get the notice below in the error log followed by the error. Notice: Undefined index: id in Drupal\Core\Config\Entity\Query\...
0
votes
0answers
11 views

Are there any “taxonomies views bulk operations”? [on hold]

I have created a view with list of taxonomies and I would like to print them using "Entity Print" module. With the view that contains list of nodes it is pretty easy, as Drupal has built-in "node ...
-2
votes
0answers
20 views

How to grant access to Reports? [on hold]

As admin I can see "Reports" in the admin menu. I cannot figure out how to give access to these reports to lesser roles. I have looked at permissions and connot see where to allow access.
0
votes
0answers
45 views
+50

View display plugin “entity reference” not using translation

For some of my entity reference fields I'm using "Views: Filter by an entity reference views" as reference method. I've configured those views to use the current interface language for rendering (with ...
0
votes
0answers
28 views

views exposed filter does not use enabled ajax [on hold]

how do i get the ajax feature to work with exposed filters? am i missing configuration options? what do i need to check? i am using drupal 8.6.1 and a couple of views extensions (better exposed ...
4
votes
0answers
44 views

How to get a second join into hook_views_data?

I am trying to make the value of a string (name) found in mymodule_names.name available to Views by means of hook_views_data(). To get the name, I need to first look up the nid of the node I want ...
0
votes
0answers
15 views

Adding term relationship to view breaks view for non-admin

A bit of a strange one, I have a vocab called "Creative Commons Licenses". I have a content type called "Painting" that includes a term reference field for the Creative Commons Licenses vocabulary ...
0
votes
1answer
15 views

How to provide checkbox for a grouping field?

For my Drupal 8 website I have created a view with a list of nodes. I have grouped the nodes based on the certain field. Additionally I would like to provide a possibility for the user to perform bulk ...
0
votes
0answers
15 views

How Do I Use the Page Translation as a Contextual Filter in a View?

I have a Products content type and I've setup a a Product Markets vocabulary which allows me to specify the markets individual products are available in (Europe, North America, etc.) Each Product ...
0
votes
1answer
24 views

is there an alternative for hook_views_ajax_data_alter in drupal 8?

As the title sais, is there a similar behavior like hook_views_ajax_data_alter in drupal 8 like in 7? If not has anyone achived the same result programatically? Thanks in advance.
0
votes
0answers
14 views

Custom Views Exposed Filter for views

I Have a content Type 'Article' , which has below 2 fields 1.'Text List' field having 2 values 'Regional' or 'Country' (single selection radio button and Required Field) And 2.'Entity Reference' field ...
0
votes
0answers
8 views

How to create a chart based on role count?

I need to create a pie chart on commerce orders according to user roles (for example, how many orders for people with a specific role). I have tried with Views and Charts but the aggregation on user:...
0
votes
0answers
11 views

Taxonomy menu views - multilingual - no results behavior

I am using "NO RESULTS BEHAVIOR" in Taxonomy menu views to show content in another language when default language content is missing (I have added a Global view area pointing to another view): it ...
0
votes
1answer
14 views

How do I remove product duplicates in a view?

In my view I have duplicate entities for my product list, this is different from Drupal 7 as you could use the distinct module. How can I remove the duplicates from my commerce product views in ...
1
vote
3answers
136 views
+50

Add class to form-tag in in views exposed form via template_preprocess_views_exposed_form()

I wonder how I can add a class to the form tag (of the _search_content_ view's) exposed form using template_preprocess_views_exposed_form() (or even better ...
-1
votes
0answers
23 views

Can I use a view as a filter criteria for another view? [closed]

I have a view with an exposed filter. This exposed filter is for taxonomy terms on content types. However, the client is asking for some special behavior of the exposed filter dropdown. First, they ...
1
vote
3answers
29 views

View of taxonomy terms that are used giving duplicates, even with distinct

I am trying to make a view of taxonomy terms that are used in content. I created a test content type with a taxonomy term field, and used devel to generate content. I've created a view of taxonomy ...
2
votes
1answer
58 views

How to change the image size within a Drupal view

Does anybody know the best way to change the image size of a field within a view using Drupal 8?
0
votes
0answers
20 views

How to sort global view using draggable views?

I have created three field collections and sorted the each field collections with the seperate draggable views. Now, I have 3 view blocks. I want to sort the 3 views block using the draggable views. ...
2
votes
2answers
33 views

How do I display an error message on a basic page when the user does not have permissions to see the nested view inside the basic page?

I have a basic page, and inside of that basic page I have a view "newsletters". The view "newsletters" has permissions set on it based on role, so only admin and subscribers can see it. How can I ...
0
votes
0answers
18 views

Solr-based View, Row cache

Context: Drupal 8.5, Search API Solr 2.2 There's a Solr-based view with Field display mode, as the results are not just nodes, there are non-Drupal content too. Right now the dynamic page cache is ...
0
votes
0answers
42 views

If logic in a view template overwrite

I have a view that has several decimal fields. I want to output the fields based on their value. Can I use a view template overwrite and twig if statement for that? Specifically Output the field ...
0
votes
0answers
30 views

Custom Entity View Date Picker

I have a custom entity with a date field in it. I have spent a lot of time reviewing several posts related to this issue: https://www.drupal.org/project/drupal/issues/2489476 https://www.drupal.org/...
0
votes
2answers
15 views

Change shown fields in a grouped view depending on group

I have a view that shows nodes and groups them by their taxonomy term. Is it possible to show less fields for a specific term? For example there are user profiles with names and pictures that are ...
0
votes
0answers
10 views

Metatag module with custom view page contextual filter

I'm using metatag and addtoany modules to customize my og tags for sharing this on social networks like facebook and others. But i try to configurate the option of metatag module on my view using ...
0
votes
0answers
8 views

Pagination issue with a view when apply the date range filter

working on D8. I am creating a view for content types and I want to filter the content with in a specific range and I used Date Popup module for date picker and I applied the full pager.The pagination ...
0
votes
1answer
13 views

Exposed filter cleaner URL

I have created a custom content type called building which I have added a entity reference field called category which is the vocabulary and added building type terms. I created a view called ...
0
votes
1answer
17 views

Select list in entity reference in VIews

How to create an entity reference exposed filter in drupal 8 in Views? The only option i have is input of type text
0
votes
0answers
9 views

How to keep the order of the displayed content ?

I have a view, which lists the content. On the view I am using a pager, so that only 10 contents are displayed per page. At the same time I have a sorting filter, which is changing the order of the ...
0
votes
0answers
14 views

change “Items to display” of a view with a number from a db?

I would like to know if I can make a module or something to change "Items to Display" with a number that I store in a database, because how it is you gotta manually type. I thought about a php that ...
0
votes
0answers
20 views

Views result count incorrect with Search API

I'm using Drupal 8 Views in combination with a search index from Search API. When using Global: Result summary in the header or footer of the View, the total number of results shown in the summary is ...
0
votes
0answers
22 views

How to get views header and footer in view block template

I have created view as block and in block twig template i can print view fields as content['#view'].field['field_machine_name'].value(row) HOw can i print text in textarea that i set as header and ...
0
votes
0answers
17 views

How to alter the Views REST Export JSON

Working on D8, I am able to get the JSON export. Now I need to format the data. I tried some external PHP script it's working great. But how can I do it in a a view itself and how can I overwrite the ...
1
vote
2answers
37 views

How to get Media image values (alt and title) in Views?

I want to edit the Media library module View to show the images Alt and Title field value, but it is not in the available fields (only "Thumbnail(alt)" which prints the image). All available ...
0
votes
0answers
16 views

Contextual filter on daterange [closed]

I'm working with Drupal 8 and looking for a way to have a contextual filter on a datetime range which would look this way /YYYY-MM-DD--YYYY-MM-DD for example and get all content whose period or date ...
0
votes
0answers
25 views

Deleted revisions still listed

I started dev on Drupal 8.6.0 and have since updated to 8.6.3. I have also cleared caches, run updates and cron. I have set up a content revisions view: FIELDS Content revision: Revision create time ...