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
19 views

Entity->getTranslation is not loading the translated fields when user does not have admin role

I am using view_unpublished module to allow users with certain permissions to view unpublished nodes. However, on content overview page authenticated users that have appropriate permissions are unable ...
0
votes
0answers
20 views

How to list needed permission in views

I have a view which is not displayed for anonymous users. I have checked everywhere and I couldn't understand why this view doesn't show up. The only way I found is to check "Disable SQL rewriting".. ...
0
votes
0answers
39 views

Twig Math in Views Rewrite results

I created a View and added 3 different numeric fields from different Content Types . Two fields of content type - Gold: field_price and field_testing One field of content type is Weight. ...
1
vote
0answers
15 views

How to link from a group of fields in a View?

I am using the Search API module in Drupal 8.6.3 and I have a page of search results displayed using Views. Each search result row consists of a number of fields. I would like to link each whole ...
0
votes
0answers
11 views

How to get a file path of the node?

For my Drupal 8 website I need to implement a PDF downloader. I have created a content type; which has a "File upload" fields. I have created a view, where all the titles of the nodes are displayed. ...
1
vote
0answers
20 views

Duplicate rows when getting list of latest revisions of a content type

I want to create a list of latest revisions of a content type, in a specific moderation state to use in a custom dashboard. It needs to have the following fields listed in a table form. Content ...
0
votes
1answer
24 views

hook_views_pre_render - how to print field x after each loop

I have a grouped view that displaces content containing multiple entity references. I have a field that generates multiple times, because of those entity references. I've looked into modifying views-...
0
votes
0answers
48 views

Broken/missing handler in my custom Views field

I install my custom views field but it returns Configure field: Broken/missing handler views1U.views.inc function views1U_views_data_alter(array &$data) { $data['node']['hello'] = array( ...
0
votes
1answer
53 views

Adding custom html and css to views header and footer

Is it possible to add custom HTML and CSS in views header and footer using the administrative UI? I am trying to add a header to my view but that is not giving me any option through which I can add ...
0
votes
1answer
51 views

How to setup view to filter based on second URL parameter?

We have a view, myview, that is added to the https://www.adomain.com/some-page/ page. It has an exposed filter, Topic that a person can use to filter the user where Ajax = Enabled so that it loads the ...
-1
votes
0answers
36 views

How would we strip html tags for the views exposed filter without using the raw filter?

Using the following example below, we are trying to display a view that has the following twig template (views-view--myview.html.twig) and exposed filters. There is a need to remove all html tags ...
1
vote
0answers
20 views

views grouping template change - move 2nd grouping below?

I've got a Views listing, grouped by two fields. Within this, I have an entity reference with multiple entries. What I want is to relocate the 2nd grouping title to below each listing. I've got a ...
0
votes
1answer
33 views

How can I override the page title using contextual filters?

I have 3 contextual filters in a view and I use them to override the views title. However, still, the page title (title in the browser tab) are still using the default title of the view. How can I ...
0
votes
1answer
26 views

How to override views title using values from several contextual filters?

I have a view where the user can filter by using contextual filters in the URL, like this: timeline/%year/%month/%day I then use these contextual filters: Content: node.field_daterange (year) ...
0
votes
0answers
24 views

Get Data from a Relationship Field in Views Template [duplicate]

How do I programmatically get the data from a relationship generated a field in a view template? The field is working on the views admin page but it won't show my template. For example, this works for ...
-1
votes
2answers
33 views

How to hide certain taxonomy views from user?

I have one general taxonomy view wich has this alias mask /taxonomy/term/%. What I need is to hide views for certain taxonomy terms like 'canada' from display while it'll remain showing the other ...
1
vote
1answer
35 views

How to display list of nodes by number in views

I want to put my custom list of ids to views filter but is seems to work only for one id. How can I do it for this list for example (1, 5, 9, 12, 455)
0
votes
0answers
22 views

How to display a grouped exposed date filter as links?

I have two exposed filters and two sort functions whose items I all want to display as links. For this I'm using the Better Exposed Filters module which works perfectly, except for a grouped date ...
0
votes
0answers
12 views

How to include the content of the nodes into PDF? [duplicate]

On my Drupal 8 website I have created a view with a list of nodes. Currently it is a list with titles. Down on the page, using "Entity Print" module, I have added a button, which lets me create a PDF ...
0
votes
1answer
16 views

How to list nodes in a view as checkboxes?

For my drupal 8 website I need to create a view page with nodes of particular content type. I need to dispaly them as a list of checkboxes, and further implement a PDF manual, composed out of the "...
0
votes
1answer
34 views

how to use “views field view” for entity reference - Not taxonomy

I've got a view of "webinars," that contains an entity reference "speakers" that can have multiple entries. I can't get those entity references and their own fields into the listings for each webinar, ...
0
votes
1answer
37 views

Programmatically render a custom form in a view template while passing view argument to form

I have built a custom form (in its own module using FORM API) and have exposed this form also as a block using Plugin API. I can add this form fine to page and get it to render using Block Layout but ...
0
votes
0answers
25 views

Where are the settings for the XML option style in Views Data Export?

Using Views data export I don't find the settings for the XML option style like in the D6 version. Where can I find that option in D8?
1
vote
1answer
21 views

can we change block title using template_preprocess_block?

I am having a need to dynamically change the title of a block. Here is what I am trying but no avail. function MYMODULE_preprocess_block(&$variables) { if ($variables['elements']['#id'] == "...
0
votes
0answers
10 views

Getting the output of a Views aggregation into a field and compare it with another value

I have a parent entity that maintains a treshold (integer) which the children entities together cannot exceed. I created a view on that, through aggregation, gives me the SUM of all childrens fields....
0
votes
1answer
27 views

How to group by one field

I have a view which shows the users subscribed to the website. Some users have multiple roles, therefore, on the results, there are some duplicates. What I want to do is to remove these duplicates, ...
2
votes
0answers
44 views

How to change the title of a modal window?

I have a link that displays a modal window. The link redirects to a page view. When I click on it, it is marked in the title of the modal window Array. How to customize the title ? <?php ...
0
votes
1answer
20 views

How can I add a condition to the list of taxonomy a view is created from

I've created a view using a taxonomy term let's say (a,b,c,d,e) A content type can have multiple selections of these taxonomy term. The view returns the content-type based off the taxonomy term ...
7
votes
1answer
67 views

How do I display the last person that edited content instead of the original author?

On the page /admin/content, there is a column for Author. We have a lot of people editing our content, so the original author isn't all that important. I want to change it to show the last person that ...
0
votes
2answers
50 views

Show last node of every term in one Views

How to show the last node of every term using only one View? That's what I want to get: news/football - last node of the football term news/boxing - last node of boxing term. How can I do it?
0
votes
2answers
25 views

Set views contextual filter as request_path()

There are fields in content type called URL and Image. Suppose, A node has "service" value of "URL" field and I'm trying to show views block where current path (service) and "URL" field path (service)...
0
votes
1answer
31 views

Why is my JSON looking like this and what can I do about it?

On Drupal 8, I enabled the serialization and restful web services and I created a restful view in order to create a map. The format is WKT. However, the output looks like the below. Can/should I do ...
0
votes
2answers
43 views

Making a colums total (SUM) with Views

Popular Drupal 7 modules such as Views Calc and Views aggregate plus are not available for Drupal 8, so I'm struggling with achieving the following : Making the sum of a column (of one integer field ...
2
votes
0answers
20 views

Can global user interface translations be used for views translatable strings?

In Drupal 8, views translatable strings are translatable in the views translate pages, aka. admin/structure/views/view/%view%/translate/%lang%/edit In these pages by default the English string is ...
0
votes
1answer
29 views

Views Link Display Settings Is Not Accepting External URL

I want to add an external URL to the Views More Link Display Settings. It is also mentioned in the guide lines as well ("A Drupal path or external URL the more link will point to. Note that this will ...
0
votes
1answer
17 views

nav arrows AROUND the blog view?

nav arrows AROUND the blog view? I've finally gotten pretty close to what I was aiming for on the recent blog entries view.. I've posted my version above and what I'm aiming for next.. I still need ...
0
votes
0answers
13 views

Classify nodes according to the number of times they have been referenced and their taxonomy term

Let me first explain the context (because the problem is quite complex): I have nodes, having a reference entity type field to link them to taxonomy terms. I have a webform in which users can ...
1
vote
1answer
18 views

hide image title in slide show

Trying to show just the images in a slideshow 'view'. Not sure where to turn the title off, I've tried changing it to <none>, but it's still printing out over the image. I even changed it under '...
1
vote
0answers
13 views

Add granularity year expose filter to a Search API indexed result

I have a search API views that I'd like to add an exposed Date filter so people can have a dropdown with only Year in it is it possible to achieve that? what field should I index? (Post Created) and ...
0
votes
0answers
10 views

VBO rules on CRM Core (not working with custom CRM fields set a data value)

I haven't gotten that deep into it yet, but I'm trying to set up a fairly simple CRM on D7 using CRM Core (along with all the suggested modules.) I've added some extra fields to the 'individual' ...
0
votes
0answers
31 views

When Using Views Group By - Programmatically move a grouping to the end

I've got a Apache Solr Views display where I'm using "Group By" to group the results by a particular taxonomy term. I'm then sorting the results so the taxonomy terms appear in ascending (...
0
votes
0answers
25 views

Using PHP with OR in filter criteria

I need to make visible to users, a list of quotations the users can "accept." Four people can accept the quotation: after that, nobody else can see it. So I installed the Views PHP module and ...
0
votes
0answers
18 views

Give View Page a taxonomy term

I have a view page that shows all content of a certain content-type, e.g. all press releases. I also have a sidebar containing a view block "related" that shows content of content-type "servicebox" ...
1
vote
1answer
27 views

Add a sticky class to node displayed via View

How to add class for sticky nodes in Drupal 8, so I can theme views (sticky having different background etc). I have seen a post that it can be done through Twig, but I cannot understand in which ...
0
votes
0answers
13 views

How to describe data for a custom views filter in the my_module.schema.yml file?

I encountered with a problem. For creating a custom views filter in my own module I should also describe it in the my_module.schema.yml file. Could you clarify me, how to do it? For instance, there ...
0
votes
0answers
36 views

Separate template suggestions for View block and View attachment

I created a block with several attachments. I tried to create a template suggestion for the block and its attachments without success. With views and by default, we have these template suggestions [...
0
votes
0answers
14 views

Relative optional date popup filter, sets default

I have looked everywhere and I just cannot get this right. I am building an analytics style tool that shows how impressions an advert has had for a specific campaign. The structure is as follows; ...
0
votes
1answer
34 views

How Print individual fields in a view row by row

I have so much fields in a content like "title", "field_image", "field_description", and i use a view for create a block and put it on my front page... I will make a slider with a jquery plugin (...
0
votes
0answers
16 views

Disable field in Editable Views

I have a node field I would like not to be editable after 5 days from the initial edit. I set up a flag with the rules scheduler to flag that node after editing that field. I wrote a custom module ...
0
votes
0answers
24 views

How do I create a view of all user accounts who have zero orders?

I would like to create a view of all users and their total Commerce orders particularly including all those who have no orders so that they can be filtered for. I found a related question that solves ...