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
8 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
0answers
10 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. Here is the corresponding form: One of the field is a file defined this way $fields['file1'...
0
votes
1answer
8 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 ...
0
votes
1answer
14 views

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

I have a drupal site with the Views PDF Display module on it. I can generate a custom PDF for my order, and all is nice, except for one things. I need to send those PDF one by one by mail as attached ...
-2
votes
0answers
18 views

How do I use a view with a paragraph? [on hold]

Is there any way to add all views or any specific views that will show in paragraph field like other paragraph bundle are showing.
1
vote
1answer
14 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
10 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
37 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
28 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 ...
-1
votes
0answers
8 views

How to add a class to #edit-sort-bef-combine-wrapper in better exposed filters?

I would like to add css classes for the wrapper for bootstrap theming (something like col-lg-3 col-md-3 col-sm-4). I prefer to do it in the server-side rather than using javascript. How can I ...
0
votes
0answers
25 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
16 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
9 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
15 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
20 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
13 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
13 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
20 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
27 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
0answers
11 views

Is there a module to output view preview in array? [closed]

The view's preview outputs HTML, but I'd like to be shown also the array of elements the query returns, while using the Edit View preview. Is there a module that does this?
0
votes
1answer
25 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
29 views

Pager twig can't access to my javascript file [closed]

I want to change an element color on my page depending on the view's pagination. If i click to previous my div will be green, if i clicked on next my item will be red. I created a view in Drupal. I ...
0
votes
0answers
18 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
16 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
41 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
17 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. ...
1
vote
1answer
23 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
10 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
37 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
32 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
30 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
15 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
12 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
19 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
26 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
16 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/...
0
votes
0answers
18 views

How to switch between views displays through ajax

I do have a view with exposed filters and a quite hierarchical architecture of the data which demands multiple grouping and sorting criteria. because of different use cases, users need to change the ...
1
vote
1answer
15 views

Export JSON sitemap of views

I have a Drupal 8 site that is using a bunch of custom views with REST endpoints. These views contain a bunch of content nodes on them which make up a single page. I have been able to generate an XML ...
0
votes
0answers
54 views

Use Drupal's Default Views Filter Handler Plugins on Custom Views field?

How do I use Drupal's core Views filter handler plugins on a custom views field? Just returning a value does not seem to be enough for views to filter by? Looking at the boolean field docs, I'm ...
0
votes
3answers
36 views

How can I display a list of users who have the same taxonomy term

The setup: A Taxonomy Vocabulary called "Area of work". The vocabulary has the following associated terms: A, B, C, D, E, F, G, etc. During registration users have to choose a department from the ...
0
votes
0answers
18 views

Saving a view shows “This display has no path”

I have migrated my website to a new host. Now, the front page logo is missing and dynamic block contents became static. On editing a view block, it shows: All changes are stored temporarily. ...
0
votes
1answer
14 views

Location Contextual Filter: Distance/Proximity works for all nodes but one

Drupal 7 site with Location and Location CCK modules. Client has custom content type with Location field provided by Location CCK module. Each Location node has a Views block display of Nearby ...
0
votes
2answers
39 views

Options form with FieldPluginBase?

I tried some variations on the code below, but I have not been able to pass my custom form options to render(). class CustomField extends FieldPluginBase { public function query() { // This is ...
0
votes
1answer
26 views

Cannot edit new View

Since I updated to 8.6.10, I can no longer edit a new view. I can create a view but when I go to the main interface after clicking Save & Edit, nothings works. No matter what I click on, aside ...
0
votes
1answer
14 views

Pass argument when overriding controller in RouteSubscriber

I am having the issue of overriding the default taxonomy controller /taxonomy/term/{tid}. I have created my own controller which takes {tid} as a parameter and I want to use it instead, so I overrode ...
0
votes
2answers
52 views

looking for equivalent webform select view module on Drupal 8 [closed]

I am a new to Drupal 8 I am trying to make select options with webform submission. What module do I need? and How can I make this select options with that module? Thank you very much! implement