Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
18 views

How do I use a views data with a paragraph? [duplicate]

I have a content type with dynamic content block section. Each block section is managed by paragraph bundle. Let's explain using an example to make more clear- Content type name is Employee. A ...
0
votes
0answers
13 views

Field_image width in views

I need to build a view with image width and height available in the node devel tab (see image). In the view field list, I can't find those. How can I have these values in my view? note: Having ...
0
votes
0answers
38 views

Description metatag from first row of the view

Okay. Current version of metatag_views does not support views data in it's tokens. The idea is to make custom handler based on Custom text, where theme() method will have the rendered text. If I put ...
0
votes
1answer
18 views

Views with tables have different column width with same setting

I'm having problems with drupal views. I used a table to make a list of items with an image, a title and a body each. The first time I tried it it worked perfectly, each column only taking the ...
0
votes
1answer
11 views

Contextual filter “Allow multiple values” is gone

Why can't I see the "More - Allow multiple values" option on my contextual filter product view? This is my view: This is what should appear:
1
vote
2answers
28 views

How to use a contextual filter value in a menu displayed on the same page

I use a view to display a list of books sorted by title. The view has a contextual filter to limit the list by topic. So, a link to the view might be /books-by-title/34 where 34 is the taxonomy term ...
2
votes
0answers
18 views

How do I access attributes from within a block?

So I'm calling a block within a HTML container in Drupal 7.x with a shortcode. There is an option for a Dynamic Shortcode as well but alas there is no documentation in the code base. [block admin_url ...
0
votes
0answers
14 views

D8: Embedding View in custom form with exposed filters causes custom submit not to fire

I am trying to embed a View into a custom form which has exposed filters. However when I add the field, it causes my custom submit button not to fire at all. It doesn't even try to reload the page. ...
0
votes
1answer
16 views

How to add “#main-content” to the link of pager element?

I would like to add #main-content to the link of pager element. So, I would get an url like this: http://domain.com/my-views-list?page=2#main-content Any idea, are there any preprocesses or something ...
0
votes
1answer
24 views

Contextual filter Term OR Empty

I have a view using taxonomy CONTEXTUAL FILTERS. taxonomy vocab 1 terms AND taxonomy vocab 2 terms Both are set to get the taxonomy id from the url, limited to a specific taxonomy vocabulary and ...
0
votes
0answers
15 views

Display current filters from view

We have a landing page that has a search block that has exposed filters for category and content type. We are using facets to add the exposed filters to the page. The exposed filters are displayed to ...
0
votes
1answer
19 views

Show Targeted Content Based on Content Field and User Roles

I'm looking for a way to show specific targeted content based on a content type's field and user role. For example, if user1 has a "Content Group 1" role, then the view should show content pieces ...
0
votes
0answers
16 views

Translate a taxonomy term in the exposed filter select options

I'm using Drupal 8 with Better Exposed Filters and for some reason the select options in the exposed filters (which are taxonomy terms) are refusing to appear translated, despite the fact that the ...
0
votes
1answer
15 views

The way to join the entity to itself and use joined fields in UI

I have a list of locations and want to make a view of routes between them. In classical sql the query will be: SELECT src.name, dst.name FROM locations src LEFT JOIN locations вые ON src.name!=dst....
1
vote
1answer
24 views

How to change the labels TRUE and FALSE of a boolean field in views exposed filter

I am using the flag module to toggle a node type 'Task' as Done. I made a view that lists the tasks, and added a views exposed filter for the flag status, which is a boolean field. In this way users ...
0
votes
1answer
32 views

Problem using Font Awesome for a Custom text in a view

I have a custom entity (contract) created in a custom module (amap) by a bunch of BaseFieldDefinition. This is the corresponding form. One of the fields is a file defined this way. $...
0
votes
1answer
12 views

Using Views to categorize results

I have a view which is returning integers. Instead of presenting the actual values, I'd like to replace them with the name of a category. For example, all of smaller numbers (<100) are to be ...
1
vote
1answer
27 views

Send “Views PDF Display” generated PDF by mail as attachment

TLDR: How to send Module "Views PDF Display" generated PDF by mail as attachment without another deprecated module ? I have a Drupal site with the Views PDF Display module on it. I can generate a ...
1
vote
1answer
17 views

Set max_execution_time for view?

I've got a view that generates a CSV report on user information. However, due to the size of the dataset it's causing the server to timeout. Is there some way that I can set the max_execution_time() ...
0
votes
1answer
13 views

Selecting the number of Records from Textbox

I am trying to built a text box where I can type in the number of records that I want to select. So if I type in "100" the first 100 records should be selected and then will assign it to user. How do ...
0
votes
1answer
43 views

Show count in view grouping

I'm building a index view to use as search. I'm grouping the results by a term field and everything works fine. What I want to do is add a count after the group title to show how many results that ...
0
votes
2answers
29 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
0answers
35 views

View filter if field contains a value?

I'm trying to filter my view based on data in a single field. My field targetuser contains a string of numbers: 47,505,100,20. I'm trying to setup the view so that if targetuser contains the logged ...
0
votes
0answers
20 views

Result should return a value greater than or equal to the selected facet

Here is the scenario. I have created a facet which list all GPA's (these are decimal numbers). e.g. 2.0, 2.5, 3, 3.5 etc. What I wanted is when say a user choose 2.5 GPA from the facet, the returned ...
0
votes
1answer
15 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
0answers
19 views

How to dive deeper into the hierarchy using views

I am really bad at explaining things so I will just use images to best illustrate what I am trying to do. To summarize, I am learning Drupal 8 and I thought my pet project would be to create a ...
0
votes
0answers
19 views

Revisions counter in node overview

I would like to see how many revisions a node has in the node overview page (/admin/content). The ones that are listed in e.g. .../node/ID/revisions It can't find anything like delta revisions or has ...
0
votes
1answer
31 views

Sum up views custom text field using aggregation

Would it be possible to set the custom text field value in views? I have a simple calculation in custom text field. It gives me the correct calculation, but when I'm trying to aggregate the views to ...
0
votes
0answers
14 views

Date Range filter

Don't know how to simply explain this, so I'll use an example. Content has a Date field of Date Range type. Range is Jan 10 - Jan 18 Want to filter in View to show all content based on a date or date ...
0
votes
1answer
15 views

View is duplicating content added by entity reference

I have two content types, Project and Resource, I have a view displaying fields from Project, and also fields from Resources via an entity reference field. The problem is, if I add more than one ...
-2
votes
1answer
24 views

Views query alter add grouping

Can anyone please help me how to add/alter/remove aggregate options like count/sum/average etc. along with groupings using hook_views_query_alter in Drupal 8. I cant seem to find a suitable example. ...
0
votes
1answer
34 views

Sort view by tag count

I have to show all the tags and sort based on count. I am able to get the count of tag used by pages through views but not able sort based on count as this option is not available in views. Any ...
0
votes
0answers
19 views

Create Custom Views Link with arg

its about Drupal 8, i created views with link "/admin/x" ... i want create menu in mymodule.links.menu.yml to open "/admin/x/city" i'm using in mymodule.links.menu.yml: imapping....
0
votes
1answer
36 views

Get fields of referenced entity in view

I have two content types, Project and Resource, I have a view displaying fields from Projects, and I would like to display fields from resources referenced by projects in that view. If I Twig ...
1
vote
0answers
19 views

Assign template to a view

I am using the latest version of drupal and trying to assign my custom created template to a view. I have created a view with machine name designers and followed this article to create custom template ...
0
votes
0answers
21 views

Display users with quiz results and users who didn't take the quiz

Views shows only users that took the quiz and shows their score from the Quiz module. If I create Users views there is no relationship for Quiz fields and if I create Quiz view it shows only users ...
0
votes
1answer
13 views

Node is flagged, node author comes back to the site, how to show how many new flags since last visit?

I created a "new activity feed" view page in which a user can see how many new comments have been posted to his own nodes since his last visit Eg : since you last last visit : - 21 new comments have ...
0
votes
2answers
17 views

How to filter content on the view based on nid?

For my Drupal 8 website, I need to create a view page, where I would like to list only 4 specific nodes of "Basic page" content type. How could I handle it? Under filter menu there is no option to ...
0
votes
0answers
72 views

Why is a ISO:8601 date within a time tag converted to zeroes?

I've been attaching Timeago script to my themes and it requires dates to be formatted like this. <time class="timeago" datetime="2008-07-17T09:24:17Z">July 17, 2008</time> In a view, I ...
0
votes
0answers
18 views

Making a Display Suite Block field visible only to node author

I've been stuck with this issue for two full days. I've created a view including a VBO field and want to put that on a specific node type making it available/visible only to the author of each node. ...
2
votes
1answer
26 views

How do I add custom pages or view pages to search index?

Suppose I have a custom page built in a custom controller. Or similarly, a view page the displays the list of nodes, such as the classic "admin/content" page. I want certain user roles to be able ...
0
votes
1answer
16 views

Drupal 8 : Add Product SKU as search filter for Orders view of the Commerce module

I like to achieve below solution using Drupal configuration instead of code. The commerce module has been installed for one of our Drupal CMS site. In the admin interface there is an Orders view for ...
0
votes
0answers
39 views

Add script to a view [duplicate]

I've downloaded this to my theme folder and added scripts[] = easytree/jquery.easytree.min.js to my theme.info, how do I call it to be invoked on a particular views path? I would like to use the path ...
0
votes
0answers
34 views

How to customize view exposed filter

I am working with drupal 8.6.10. I am using group module. I have a view that shows Public's Content, and Group's Content for users with group. This view Shows only Public content for user without ...
0
votes
0answers
31 views

about view entity reference

I am new to Drupal 8 and I am trying to figure out making a dropdown list with using webform submission. I have two webform contents which are Class and Student. Class stores class and description. ...
0
votes
1answer
20 views

Views arguments as part of path

Is it possible to create views pages with urls like "prefix-%-postfix" instead of "prefix/%/postfix"?
0
votes
0answers
16 views

How to add a check box in views exposed filter

I need to add a checkbox in an exposed filter to strip left and right space of a value entered by user, i.e: I have email field on the basis of email filtering the user some time user add left or ...
1
vote
0answers
22 views

Taxonomy term limit | how to bypass [closed]

Migrating to Drupal 8 - I find a new restriction - in Views filter - Taxonomy term field cannot be more than 128 characters..... In Drupal 7 I never had seen such a restriction, or it was more longer....
1
vote
1answer
27 views

How to show the following n events with respect to the current date or the past events to always ensure n elements in the view?

I have an agenda on my homepage, and I want to always ensure 5 events. If there are 5 or more following events (including the current one), show the nearest 5 from the start date. If there is less, ...
1
vote
1answer
17 views

How to limit a custom views filter to a certain display type?

I'm creating a views filter, and I would like to limit it by display type. How do I do that? I'm creating a custom filter for the entity_browser view display (entity_browser/src/Plugin/views/display/...