Questions tagged [views]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

Taxonomy Term View with Expose filter Dropdown of Terms Name

I Have a view of Taxonomy and "not Content". In this View I want a Expose filter of Term Name. But when ever i add Term Name as expose taxonomy's filter it shows text box and not Dropdown. Without ...
0
votes
1answer
20 views

Entering views result to field through rules

When I create a new OG, I would like the user with the least number of OG subscriptions automatically to be added to this group. So I created a views block where I count and least the user with the ...
0
votes
1answer
20 views

Show administrative description in Views

I am needing to do a Views report for all webforms on our site (we currently have 27 forms) that can show me the total submission count per form. The issue I am having is that we need the Views ...
0
votes
0answers
14 views

How to get the node title which is related to file in File usage view?

I am just trying to list out the nodes which are linked to files in the File Usage view. That will show up in this URL: /admin/structure/views/view/files/edit/page_2. In this view I tried to add ...
0
votes
0answers
10 views

How to display field labels in Views lists that show full content or rendered entities?

I have a view that displays multiple content types and for this, I went and created custom displays. It works fine except that Views seem to strip all fields from labels. I did a dump of twig fields ...
0
votes
0answers
64 views

Strange AJAX HTTP error, 302 redirect error after update and migration

I have a Drupal 7 site (ver 7.67) running on CloudWays, PHP 7.1, MySQL 5.5. I get the AJAX error "An AJAX HTTP error occurred. HTTP Result Code: 302" The debugging information is limited: "Path: /...
0
votes
0answers
28 views

How can i set the custom column class field in a view to accept colons?

We are using the uswds design system in our Drupal template. I have created a view and set the Format type to be grid. I want to setup a responsive grid layout. Under Format -> Grid -> Settings ...
0
votes
0answers
23 views

Creating search form that will query SQL database and display results on a custom block

I am new to Drupal and have learnt about custom blocks. Basically, I am trying to create a search page where on the left column will have all the filter/search criteria. On the right column the ...
0
votes
0answers
15 views

Bulk update fileds integration with Address field

I am trying to bulk update nodes that contains Address field using the bulk update fields module with no luck. I created an ticket in the issue log and had a response from the developer, nevertheless,...
0
votes
1answer
54 views

Displaying multiple fields in referenced webform option?

First I have a content type Quiz option which represents one option (answer) for a webform question (field). Then I have a (entity reference) view which is collecting specific number of nodes in this ...
0
votes
1answer
45 views

How do you get the url of an image in a view twig template?

I want to check the fields.field_image.content to see if it is empty or not. I want the view to display differently if there is no image in the page field_image field. I was thinking I could just ...
0
votes
0answers
20 views

How do I add the View field to another View?

I'm trying to add a field for Revision Author to /admin/content following the instructions located here: How do I display the last person that edited content instead of the original author? When it ...
0
votes
0answers
36 views

How to test a custom filter on existing view?

I programmatically created a new (custom) filter for the user's view (admin/people). Code for the filter: hook_field_views_data_alter() Plugin > views > filter class The filter works ...
1
vote
1answer
38 views

How do I modify the URL to a taxonomy term?

I have a vocabulary called Industry with four terms. I have edited the terms to keep the URL to be automatically generated. They are following this convention: industry/term1, industry/term2, etc... ...
0
votes
2answers
81 views

How do I per-variation add to cart button with no selection?

I have a table that displays rows of products with there attributes, the last item on each row has the variation add to cart form. The view's self sorts on the product id to display all the ...
0
votes
1answer
31 views

Drupal Leaflet View loading view block through Ajax

I created a view block for displaying geocodeed nodes on a View Leaflet map. Everything working, the map displays the markers as I want. Now, I would like to load this map throught drupal ajax I ...
0
votes
1answer
20 views

Get Relationship for the Author of the Latest Comment

In a Node view, I am trying to group the latest comments by the author's field_last_name, but I am having difficulty adding this field. I tried using the the "Last comment" and "Last comment author" ...
1
vote
2answers
40 views

How to change view's field (Custom-Text field specifically) value based on other field value using hook_view_pre_render?

I have created a taxonomy-term view. I have added two fields in a view: term-id and custom-text field. I want to check if term-id has children and depending upon the result, I want to set markup ...
-4
votes
1answer
22 views

Article “promoted to front page” also displays all images of featured slideshow [closed]

Currently using Shinbun theme and Drupal 7 (based on an existing site, as required for a project) and was struggling to create a slideshow of selected images, which I finally managed on the article ...
0
votes
1answer
96 views

How to find a field name/column name of a field in database where I have only the label of that field?

I am working on an integration part with drupal framework. Here it's hard to find the table names of the field which is present in the view as I know only the field label name. Is there any way to ...
0
votes
0answers
45 views

Remove duplicate records from view result with pager

My project is setup in Drupal 7 and i am using search API for display my custom search result. Actually i want to show search result based on two content types content so i have configure the search ...
0
votes
0answers
17 views

Seach Page Split into Form Block & Results Block

I already created a search view like /search it is giving form and results finely but Views UI is disabled in my server . So i want to split this search page into 1) A block which contains a search ...
1
vote
1answer
17 views

Having issues saving altered value in a view pre render

I am trying to remove image tags in the view prerender. I've looked through articles and StackExchange and I have set it up correctly. But when I refresh the page containing the view, all the HTML ...
0
votes
0answers
32 views

Related nodes view block based only on child Taxonomy Terms

I have a 2-levels Taxonomy Hierarchy structured like this: Parent Term - Child Term 1 - Child Term 2 - ... My goal is to create a view block, where related nodes based only on child ...
-3
votes
1answer
29 views

How can I create a page with four content types displayed with infinite scroll? [closed]

I need a page where i display a list of 4 contents types articles. The articles for each content type must grouped, and when scrolling i want load page for each groupe. What is the better way to do ...
0
votes
0answers
22 views

How to use submenu as filter View?

I'm new in Drupal 8, and I want to use submenu as a filter in my page. Example: ParentChild child0 .child1 .child2 When I open the Parent Child page I want that ...
0
votes
0answers
36 views

Manually sort Commerce 2 products within the taxonomy term (category)

I have a view to display my products (categorized by taxonomy term) in the frontend. I have another view admin/commerce/products to add new products in the backend. How do I implement and configure ...
0
votes
1answer
38 views

Drupal 8 - some child pages are not visible on particular book using view

I would like to ask for your help as I'm having a trouble in displaying some child pages of a particular Book in Drupal 8 using view. There's a book which displayed all the child pages but there's ...
5
votes
1answer
57 views

How to determine if a View display is being used in a site?

We have many Views and Views displays. Over 3 years of building the site we have many displays that are not being used. We would like to delete them and clean up the view but are concerned that a ...
1
vote
1answer
41 views

Change views exposed filter value only on page reload [duplicate]

Is there a clean way to alter a View exposed filter field, but only on page reload and not each time you submit the exposed filters form ? Example I have a View with exposed filters. When a user is ...
0
votes
1answer
27 views

How do I add more pages to views pagination on mobile?

I'm using Open Social and I want to add more pages to the paginationon mobile phones. One of my views has 11 pages of users and on mobile the pagination is as the following example (<< = ...
1
vote
1answer
113 views

How to enable click-sorting for views table display based on Search API index?

I'm trying to create a view with table display based on Search API (database search) index, with column-sorting (column set as Sortable in the display settings). However, this option isn't available ...
0
votes
0answers
29 views

Displaying translated nodes in views [duplicate]

I am facing a challenge in displaying views for translated contents. Consider a general scenario: Multilingual site with English(site default), German languages. A content type Article has 100 ...
0
votes
1answer
21 views

views_get_current_view performance

Does this function views_get_current_view inside views header or footer (to count rows number for example) means running the same view twice? Or is it somewhat simplified version of running full view?...
1
vote
1answer
32 views

Why would a view be displayed differently in different software?

Using Drupal 7 and the Views PDF module, I have created a PDF output that looks perfect when opened in a browser, but is inconsistent everywhere else: On Chrome, Firefox, and Edge it is displayed ...
1
vote
0answers
112 views

Invalidate cache of views block for anonymous users

I have a view display block that needs to be updated every 8 hours. I tried Views Custom Cache Tag module https://www.drupal.org/project/views_custom_cache_tag but I could not make it work. I set my ...
0
votes
1answer
22 views

How can I change the items order in a pulldown list of filter in views?

Hello Drupal community. I have a question about Views. I have a “People” view with a role filter and the pulldown list for this filter look like this: Administrator Editor Approver I would like ...
-1
votes
1answer
28 views

How do I show multiple values from an entity reference?

I have a content A that uses reference from users. Users, basically, have more than a content A. I have view that shows users and adds a relationship from the field used in content A. I added a field ...
1
vote
2answers
46 views

Filter on boolean with NULL (unset) value

Client wants to hide some published content from specific Views displays. Unpublishing the content is not an option: it needs to remain accessible. I added a boolean exclude_from_view field to ...
0
votes
0answers
26 views

How can I customize the calendar view template?

I am using the Calendar module in Drupal 8. I want to customize the layout of the calendar. For this, I created the views-view-fields--page_week.html.twig template, where page_week is the machine ...
0
votes
0answers
25 views

How to mark the fields of a view shown in a table as already read?

I have a view that displays the results as a table, and also contains an exposed taxonomy filter. I need a way to know when a certain field in a row has a value that has already been "seen". A row ...
2
votes
1answer
61 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 ...
0
votes
2answers
34 views

Views footer include twig

Is there any way to include an if condition in views footer. I have to check the total rows {% if [view:total-rows] > 6 %} <div class="btn">View AllEvents</div> {% endif %} But this ...
0
votes
1answer
24 views

Link to node in View with TWIG

I have a set of nodes, some of which are just a title, while others have body and other content. I'm trying to create a view, which lists the node titles. If the body of the node contains content, ...
1
vote
1answer
65 views

Programmatically check the checkbox of an exposed filter

I need to check a checkbox on an exposed filter for a view based on the url. I can't seem to figure out how to do that. If x is detected in the url, I want to set one of the fields of an exposed ...
0
votes
1answer
37 views

How can I disply the regex match in a view?

This is a Drupal 7/Views 3 question. I am using a regex as a filter in a view to select Body fields with certain characteristics. However, when it comes to displaying the field, I don't want to ...
0
votes
1answer
64 views

Photo gallery with taxonomy filter

It's not easy to explain so I made simple example below. I'm making a gallery in Drupal 8. First I made articles with taxonomy term: animals, forest or people. Some of articles have two or three ...
0
votes
0answers
56 views

Create a View to reference content, get paragraph field and influence how it is rendered?

I am trying to create a Paragraph type that lets a user specify a node to reference, and a couple of checkboxes that influence how content from that node is rendered. I can create a view that gets me ...
0
votes
0answers
20 views

List Resources in Descending Order

Out of nowhere, some reason anything listed under the main "resources" page (e.g. blogs, podcasts, videos), is now starting with the oldest versions first instead of the newest. I have no clue how it ...
1
vote
1answer
113 views

Entity reference view depending on other field [closed]

I have a custom content type that contains an entity reference field (field_referencefield) and one more field as select box (field_triggerfield). The values of field_referencefield should depend on ...

1
3 4
5
6 7
290