Questions tagged [views]

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

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

Editable table column data

In drupal 8, I am writing a custom module and in one of the function in controller -I am fetching data from an external API, then displaying it in table format using - foreach($rec as $data) { ...
0
votes
0answers
10 views

Module to clone fields in views? [closed]

Any modules available to quickly clone fields inside a view (or even filters/sorts)? Basically to make minor changes and compare the different results and eliminate the whole manual process of re-...
0
votes
0answers
17 views

How to exclude nodes in one taxonomy based view from another taxonomy based view?

I have a taxonomy term view that uses a contextual filter for "Has taxonomy term id" and displays nodes with the term. I have a view attachment set up that uses the same contextual filter ...
0
votes
1answer
14 views

Remove one of the two “Apply to selected items” submit buttons with Node Bulk Operations

If you make a view and add the Node operations bulk form, two "Apply to selected items" boxes are automatically generated like this: How do I get rid of one of these? I turned on twig ...
0
votes
0answers
11 views

How to use a glossary exposed filter in search api views?

I have a search api views. I want to display a glossary filter on title. I have searched many articles to implement it using a contextual filters. But the options of context filters can be seen in a ...
0
votes
0answers
23 views

Tokens missing in Webform Emails after upgrading

Currently running Drupal 7.69 / PHP 7.3 (+ CiviCRM) I have recently updated some Modules : Webform, Views Bulk Operations, i18n, and Content Access. Since then, my Webform Emails do not show the ...
0
votes
0answers
25 views

Is there a way I can access the user profile picture filename?

I want to create a view in the Drupal 7, where I can show the User Profile picture name (the original which user uploaded) and the path its saved.
0
votes
1answer
31 views

I have a ton of errors for a non-existent config entity name in dblog when I refresh cache [closed]

When I refresh my cache, my dblog is shooting out a ton of errors for the type "view". I received a ton of these warnings: A non-existent config entity name returned by ...
0
votes
0answers
26 views

Display the fields of the current taxonomy with an exposed form

I'm using the Taxonomy term view. I expose the "Has taxonomy term" filter to my users in a block. I want to display the title and the fields of the current taxonomy even when a term has been ...
1
vote
1answer
14 views

How to filter nodes on a view based on user role shared by both nodes authors and current user?

Working on Drupal 8.9.1 I need to list nodes with Views and filter them based on user role shared by both nodes authors and current user. If I add a relationship to content author and a contextual ...
0
votes
1answer
22 views

Change sort order for view when exposed filter text field submitted

I have a view that by default is ordered by date. It has several exposed filters one of which is for filtering by text (we use it as a search field). I'd like the view sort to change to Relevance when ...
0
votes
0answers
15 views

Displaying image of type BLOB format stored in external database in Drupal 8 [duplicate]

I have created external database on localhost with image stored in one of the columns in BLOB format. Then I interfaced this external database using View Database Connector, created VIEW. I could ...
0
votes
1answer
45 views

Display an image from an external database

I created new image database on localhost (other than Drupal original database) that has images in one column. Then I installed the Views Database Connector module; I could integrate it with Drupal to ...
-4
votes
0answers
31 views

What are these settings for in Views? [closed]

I am studying Views, and I’ve already figured out all the settings, but I don’t understand why these three settings are needed. I marked with arrows the settings that I don’t understand. And in ...
1
vote
1answer
19 views

Make the suggestions of an autocomplete exposed form clickable

I'm using Drupal 7 and Views. I have an exposed form of type "autocomplete". I would like the suggestions to be clickable, which avoids having to click on apply. Do you know how to do it ?
0
votes
1answer
34 views

Show content whose “team” field matches the user “team” field

The users on my site all have a field named "team" and my content types also have the same field. I want to create a views page that shows all nodes where that "team" field equals ...
1
vote
1answer
38 views

How can I change which view wins over two using the same path?

I have two views in Drupal 8. The standard Taxonomy term (content) view, path: /taxonomy/term/% My custom view for just one term at path: /term-alias When I go to my custom term, I see the view for ...
-4
votes
0answers
18 views

Styling listing page for taxonomy terms

I'm styling a listing page for content marked with a certain content keyword (taxonomy term). I already have a views-view-unformatted--taxonomy-term--content-keyword.html.twig file to display the ...
0
votes
0answers
17 views

Display view inside paragraph's field with ajax

I have a website containing many paragraphs. Scenario: There are centres inside city regions. Inside one of the paragraphs on the page - when user clicks a part of svg map - the centres of the ...
2
votes
0answers
26 views

Different 'Items Per Page' on different pagination while using 'views_infinite_scroll' module

I am using views_infinite_scroll module to load more nodes with 10 nodes on every click and views AJAX is enabled. I am working on a requirement like as, I have 100 total nodes and getting in a view ...
1
vote
2answers
18 views

How to order search results based on author field content

I am using Drupal 8 search views, I would like to order the search result so that the content that's author has field "X" filled out should be ordered first and all other content where the ...
0
votes
0answers
7 views

Custom user field not showing up for view except for site Administrator

I have created extra fields for the User account. I have never had an issue with any of these fields showing up when constructing a View that aggregates based off of the User. I just added a new Text ...
0
votes
1answer
23 views

View to display all child taxonomy terms

I have a content type called "Unit Staff" with a term reference field called "Department". I also have a vocabulary called "Person" which is using a paragraph field ...
0
votes
0answers
11 views

Filter view results by “created”/“authored on” date - shows all content regardless of post date

I've been throwing myself at this for a while, apologies if I've missed anything stupidly obvious. I'm trying to create a table of statistics for content submitted by all users (using Views Aggregator ...
0
votes
1answer
139 views

How can I prevent one template from displaying cached values?

I have a site with Drupal 8.9 and Twig Tweak. I created 7 view blocks to set up a task list in stores. I want to display a task counter for my current user on my home page. The tasks checks : If the ...
0
votes
2answers
28 views

File size on View

Is there a way to display the file's size next to it in a View? This is for a File field in Drupal 8. I tried the advice (for D7) here, but I received this error. The handler for this item is broken ...
1
vote
2answers
39 views

Permit only one role to download files

I'm trying to set up a new D8 site. It needs to include some "subscriber only" type functionality. There is one content type which is little more than a title, a file, and one extra field ...
0
votes
1answer
59 views

How to imitate EVA with TWIG?

On my Drupal 8.9 (with Twig Tweak module) home page I integrated a block with the following code : {{ drupal_view('accueil_page_liste_des_taches_boutique', 'block_1') }} This block displays the ...
0
votes
0answers
8 views

Views aggregation for taxonomy based results in views working

I have created a view which lists contacts and groups them by office. However some contacts show up multiple times (I'd assume that is since some use taxonomy for their job titles, and some have more ...
1
vote
0answers
47 views

Logged in users are automatically logged out when visiting some specific pages

I have a page view /all-authors where both (Anonymous & Authenticated) users have access to it; However, authenticated users can follow (flag) an author and Anonymous users cannot do that. What I ...
0
votes
1answer
40 views

Why do I get an error related to a controller when I created a custom module?

I created custom module following the Creating a custom module on Drupal tutorial. The teacher of this tutorial demonstrated how you can create a custom module that displays on the page Hello world. ...
0
votes
1answer
14 views

Where to translate SHOW DETAILS from a display view?

I would like to find out where would I be able to translate the SHOW DETAILS/HIDE DETAILS menu options a DATATABLES FORMAT view. We are using Drupal 7, and I have tried to find it in the Configuration ...
0
votes
1answer
13 views

Alter view plugin form in custom module files

I'm looking for the right method to modify an especific plugin views ui inside a custom module. The views plugin to alter is created by the module https://www.drupal.org/project/views_json_source I ...
0
votes
0answers
28 views

How do I create a view showing all the commerce store products?

I am using Drupal 8 Commerce v2.19. I am trying to create a view that shows all the store products. I have created the Search API index of the products, indexed the store field as in this screenshot. ...
1
vote
1answer
39 views

How does one add a Total(s) row to Views results?

After doing some research, it seems like the best way to get a Total(s) row added to a Views table is via the Views Aggregator Plus module. (Is there an easier/better way?) As can be seen below, I'm ...
0
votes
1answer
44 views

Hierarchy of content types with taxonomy as parent

What would be the best way to implement a hierarchical structure like this: (A) Taxonomy term from single vocabulary (B) Some content type with parent of type A (C) Some content type with parent of ...
0
votes
0answers
13 views

Error accessing Views after copying site to another server

I inherited an out of date Drupal 8 site, and have been tasked with extracting some data for import into another location. I thought I would create a View to query the data that I'm after, and then ...
0
votes
0answers
10 views

Content statistics: The “Most Recent” view is not populated

I have views in my Drupal 7 site that show the last 4 viewed objects. rather, it's supposed to do so. Instead it shows 4 objects views almost 2 years ago, coinciding when we had an ISP migration. I ...
0
votes
0answers
19 views

Troubleshooting a PluginNotFoundException exception

I have a Drupal 8 site on 8.8.6. I installed and tried to use the fancy_file_delete module version 2.0.1, however, in trying to load one of its views, /admin/config/content/fancy_file_delete/list, I ...
0
votes
1answer
13 views

How to rename a view returned by REST API

Very new to Drupal (running 8.5.6) and inherited some code I need to tweak. We invoke the API request like so (which may wrap the Drupal API..I am not sure) https://api.mysite.org/backend/api/...
0
votes
1answer
35 views

Change Views BETWEEN min/max filter to a cleaner URL format?

Is there an easy way to change the default exposed BETWEEN filter to work with: price=1000-2000 Instead of: price[min]=1000&price[max]=2000? Would it be reasonable to create my own Numeric filter ...
1
vote
0answers
41 views

How can hide a row if a condition is not met by access check?

I have overrided the UserAccessControlHandler class to fit my needs: some user can not be seen by some other users. How to create a view listing only the users which can be "viewed" by the user ...
0
votes
1answer
13 views

Include referenced term's custom fields in node view with content display

I have a taxonomy term reference field in a node (D8). I have a content (node) view that needs to use a content display rather than fields. The term is selected, but not the custom fields that have ...
1
vote
0answers
39 views

How can I dynamically modify the text of the Global: result summary?

I'm using the Views module to displays search result. In the header of the views, I added the Global: Result summary to show result summary. "@total Results (@per_page per page)" //Output: 25 ...
0
votes
0answers
17 views

Creating a menu tab with wildcard, how do I make a tab only show up for certain content types? [duplicate]

I am using Drupal 8.8.6, and am about to go crazy trying to figure out something that in D7 seemed very simple. I am trying to add a view that shows up only on certain node types. Example: node/1/...
0
votes
0answers
13 views

Add a column to a view

I'd like to add a column to an existing view programmatically - but only temporarily. For instance, there is a node in the html table produced by the view. I'm gathering data from a third party api ...
0
votes
0answers
29 views

Filter content by field with multiple values and different content type

I have 3 different content types: exhibitions events programs All 3 content types have a hashtags field (a taxonomy term field). I have a view with the following filter criteria. content type = "...
1
vote
0answers
53 views

Is there any workaround for the “Global Text” area in “No results behavior” that doesn't process chained tokens?

I have a view with a contextual filter for the node ID. If the view returns no result, I would like to display a fixed picture (no problem) linking to a path containing the node ID from the filter in ...
0
votes
0answers
20 views

Limit the zoom out on a leaflet map

I'm using geolocation field. I'm trying to limit the zoom out on a leaflet map. There is the "minzoom" option with leaflet, but the option is obviously not offered by the module. Do you know what ...
0
votes
0answers
12 views

Meta-tags doesn't work in Views

I dont know why the meta-tags is not working in Views. I'm using the Meta-tag Version: 7.x-1.27 My views version: Version: 7.x-3.24 I try to change the views meta tag to any text, but it is still not ...

1
2 3 4 5
293