Questions tagged [views]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

View with grouped articles and infinite scroll

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

I am getting duplicated response from my restful api in drupal 8?

I created a view restful api in drupal 8, when i got the response its repeating its fields. Its basically repeating the title and description for 5 times and i have checked pretty much everything but ...
0
votes
1answer
14 views

Is there another alternative module for Administration Views [on hold]

Administration Views module is no longer covered by Drupal's security. https://www.drupal.org/project/admin_views Is there another module instead of admin_views that is similar?
0
votes
0answers
13 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
10 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
25 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
47 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
22 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
22 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 (<< = ...
-3
votes
0answers
19 views

How to show in a View the number of Node flagged? [on hold]

With the module Flag is it possible to show the number of users who have clicked and who like a node also showing a counter? Best Regards
-4
votes
0answers
21 views

How do I take my custom view and pass it through a json object to a template which prints out the title? [on hold]

I want to write a custom module that: Gets the node title that is printed out by a custom view and then passes it inside a json object to a template which prints out the title. e.g: http://my-drupal-...
1
vote
1answer
71 views
+50

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
19 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
55 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 ...
-3
votes
0answers
34 views

Views fields depended on published status. with AND/OR [closed]

I am trying to build a view where specific fields are shown dependent on the publishing status. Field "image" should always be shown, but field "link to content" only if the content is published. How ...
0
votes
1answer
20 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
25 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
36 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
25 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
25 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
23 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
18 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
49 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
34 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
28 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
51 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 ...
0
votes
1answer
56 views

How to go from one view to another [closed]

I'm doing a website with gallery in Drupal 8. I have articles with taxonomy terms (birds, mammals, reptiles, wood etc.) I've created a view (view1) to display only images from articles. I created a ...
1
vote
1answer
45 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 ...
0
votes
1answer
31 views

Contextual filter using any term ID

I want to set up a view with a contextual filter that will work with any term id (without selecting a specific category). I could only find some old, dated mentions of this. So I'm not sure if this is ...
0
votes
0answers
24 views

Replace taxonomy vocubulary administration page with a view

I would like to replace admin/structure/taxonomy/manage/my_vocabulary/overview with a custom view. Some of my vocabularies have custom fields that I would like to display and use as filter for the ...
0
votes
0answers
42 views

How to display values of certain taxonomy term above the table with the search results list based on content type, related to entering search query?

I made a view which displays a search result list as a table. The searching process works inside one content type using Search API. The system also has to look for between taxonomy terms (name) first ...
0
votes
0answers
36 views

Contextual filter does not work with page with wildcard path

I'm stuck on something. I have a view with a path with a wildcard "/the-register/%". I would like to use the contextual filter, to filter on taxonomy term id or name. But when i add a contextual ...
0
votes
0answers
4 views

how to replace the old sorted display content in views with newly added content?

I have 5 display of contents in views then in each content type i added taxonomy which contain the order of 1-5.Now if i want to add a content to order 2 it should replace the order 2 with the new ...
0
votes
1answer
41 views

How to render views link field in twig?

I have created a view that has many fields including a link field. I am using a twig template. my view twig name is views-view-fields--dashboard--block_3.html.twig It works nicely but I need to render ...
0
votes
0answers
11 views

How to rename comment links on a taxonomy page?

I activated the taxonomy view and activated the comment fields (standard view field). And then an ambush. I can’t change the name of the link either in a view or in hooks. Add a comment to the one I ...
0
votes
1answer
17 views

Display a view in search results

I have Search API SOLR running on my Drupal 8 site and I'd like to know if there is a way to have view pages display in my search results. As an example, I have a database content type that allows ...
0
votes
1answer
25 views

Show teasers from both content type and Users together in a view

I would like to be able to create a page to show teasers from content created with a certain content type, say "Company" together with teasers from Users content. Until now, I just managed to create ...
1
vote
1answer
26 views

Exposed filter autocomplete has TID with taxonomy term

I created a view from taxonomy terms of different country names. I added an exposed filter to allow the user to enter the country, but when the user selects the country, it automatically adds the ...
0
votes
1answer
25 views

Search Solr View with exposed filter fullsearch return no results

I setup a Solr search index (Solr 7.7.1 and Search API Solr 3.2) with custom entities. I have several fields indexed and 2 of them are fulltext. Additionally : I setup the view with an exposed filter ...
0
votes
0answers
22 views

How do I combine 2 or more fields in an exposed filter?

I am using the Combine fields filter to search in 3 fields. A referenced image name. Media ID And the image alt text. I had to use a rewrite in the alt field. The Combine fields filter searches the ...
0
votes
0answers
12 views

Exposed Filter Reset URL Error

I have a view that is formatted in a table style. The page is Ajax enabled and the view is used as a block on the page. I have a few filters and i am using Exposed Filter Module. I have included the ...
0
votes
0answers
13 views

Creating filters for view

I am creating a view that displays multiple nodes of some type. Now I need to filter the view. I am creating filters for users in the view editor page and most filters work perfectly. However there ...
0
votes
1answer
41 views

How to print in twig a Flag Link field

I have a views-view-unformatted.html.twig template working fine where I can print fields from a view of nodes. Example: having i = 3, print row number 3 title {{ rows[i]['content']['#row']._entity....
0
votes
0answers
15 views

Add a mysql IF as field to a query

In a the hook hook_view_query_alter, i need to arrange the query to put some result at the very first, with some complexes conditions. To that, in mysql, we can use the "if" function in the select ...
0
votes
1answer
39 views

Exclude taxonomy term from view display except its own?

I work on a news publisher site and I need help excluding a taxonomy term from view but still to keep it with its own page. E.g. Our content is organised by theme and region. For one set of articles ...
0
votes
0answers
6 views

Simplenews D7 double opt-in view to show who has and hasn't opted-in

I'm trying to work out the % percentage of our users who don't click on the link. I want to set up a view to show all those who have entered their email address in a Simplenews newsletter sign-up box ...