Questions tagged [views]

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

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

How can I translate Views overridden title?

I have a dynamic view for different products and I use contextual filters to override the views title based on argument of the URL, Now if page translate that argument has same only language code is ...
-1
votes
1answer
44 views

Show node summary (teaser) as tooltip/ Alt/ Title text on hover over nodes titles on front page with Views

I have a custom front page view showing nodes titles only without teasers. I want to have the teaser of each node show when hovering over any title. Something like: <a href="{{ url }}" ...
0
votes
0answers
11 views

View with referenced nodes from field in the same paragraph possible?

I can not seem to figure out how to set up the correct contextual and relationship settings to accomplish the following: I have a node with a paragraph named slides. In the paragraph slides there is ...
2
votes
1answer
127 views

formBuilder()->getForm() outputs everything except the <form> tag in a view?

When displaying my entity edit form with \Drupal::formBuilder()->getForm($form); (for a flagging attached to a node) in a View that is set to show Content with the Default display, I noticed the &...
0
votes
0answers
20 views

Views page menu shows up on all languages

I am working on a old website built on Drupal 6 which has two languages. There is a views on which I created a page for each language, but their menus shows up on both languages. I tried different ...
0
votes
2answers
28 views

Use url of media field in view twig

I need to output the url for field_slide_media in views-view-unformatted--carousel.html.twig. I can output the entity ID using: {{ view.field.field_slide_media.value(view.result[i]) }} I would like ...
0
votes
1answer
14 views

How to combine two filters in search api views?

I have a search index which is indexing both content and files. I have configured the search api views which displays the search results. On this view, I have a filter on type which displays the ...
0
votes
1answer
13 views

Different custom view per taxonomy

I'm currently working on my first Drupal 8 project and while many things are now integrated in the core, others still stump me (for example restoring options to now bare bones CKEditor requires like 4 ...
0
votes
0answers
25 views

Date field adds a hidden apostrophe

I use Excel Serialization to export views data on Excel. The exported file (xls or xlsx it doesn't matter) adds a hidden apostrophe in the beginning of every date cell ('08/07/2011) which can be seen ...
0
votes
0answers
28 views

How do I add a class to a views row in a hook?

I am building a view on my website that lists all currently pending user registrations. (They need to be approved by administrators). I also have a taxonomy that lists 'banned' names. The view lists ...
0
votes
1answer
20 views

How to correct a view query?

I would like to know how to correct a view query, when Drupal goes nuts ? I'm using a view that should list media by categories (taxonomy term). This view is called by a node, that held a reference to ...
0
votes
1answer
31 views

How do I sort paragraph types?

Hello it is possible to order the output of the paragraphs for example Type of content Blog I create a blog details field that calls the type of paragraphs and there I select image and description In ...
2
votes
1answer
28 views

How to pass pagination value to drupal view programatically?

I have a view with contextual filter and I render the view through program as below $args=[$id]; $view = Views::getView('schedule'); $render_array = $view->buildRenderable('rest_export_1',$args); $...
0
votes
1answer
19 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
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
15 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
14 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
1answer
30 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
27 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
0answers
43 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
19 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
23 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
16 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
47 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 ...
1
vote
1answer
21 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
36 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
41 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 ...
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
145 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
29 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
48 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
20 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
2 3 4 5
293