Questions tagged [views]

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

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

Is there a method to get a view to provide multiple tags in a CSV export within one column rather than mulitple rows?

I have a D7 site that is being recreated. I need to generate a CSV of particular fields used in its numerous content types. There are 5 taxonomy reference fields. I have created a relationship for ...
JAyenGreen's user avatar
0 votes
0 answers
16 views

Views Menu Tabs: primary and secondary tabs?

I'm moving a site from Drupal 7 to Drupal 9/10. In Drupal 7, there's a view with multiple page displays, set up like this: Tab name Menu setting Path All No menu events/list Summer Default menu tab ...
Kristi Wachter's user avatar
0 votes
1 answer
71 views

How to disable cache in my custom contextual filter code?

I have created a custom module for authentication by using access_token. The authentication is working fine. So, I thought to create a custom contextual filter and use that as a filter by access token....
Selvakumar Eswaran's user avatar
0 votes
0 answers
9 views

Field view in content type or header custom field

I have a need, it is to create a page with a list of contents but also custom fields in introduction, such as a title, text and an image to display on the page. I am exploring several solutions but I ...
Devanbnd's user avatar
0 votes
0 answers
26 views

Drupal View: show ALL users with node count of a content type

I need to display a list of users with a count of nodes they created of a particular type (say Article) like follows. I could almost achieve that using "Views Aggregation" by the following ...
Krishna Mohan's user avatar
0 votes
0 answers
21 views

How to create a view that displays published version or latest revision

I need to create a REST Export view which can display 1 revision of each item of content of a particular content type. I need to be able to change which revision is displayed between the current ...
Steve's user avatar
  • 1
0 votes
0 answers
17 views

ECA: Cron Event - View - Message per Mail

ECA: Cron Event - View - Message per Mail I would like to send a notification by e-mail to a user when a certain event occurs. The event is then a view that outputs a content, this content is ...
Bavramor's user avatar
0 votes
1 answer
37 views

List (distinct) users in order of their most recently published node

I'm trying to list 8 users (name and profile image) starting with the one who created the newest node and follow with the rest of users in (descending) order of their last created node. I got to ...
hip's user avatar
  • 17
-1 votes
0 answers
21 views

How to produce GeoJSON from a set of Geofields without a single point error?

I'm getting an error from a geoJSON view Exception: Cannot construct a LineString with a single point in LineString->__construct() (line 18 of /vendor/itamair/geophp/lib/geometry/LineString.class....
Interlated's user avatar
  • 1,413
-2 votes
0 answers
123 views

How to unlink H1 headings of nodes in a view of nodes?

I have a view of several nodes concatenated one after the other. My problem is that the H1 heading of each one of these nodes is a link leading to the node itself, but I don't want it to be a link, ...
mahtir's user avatar
  • 1
0 votes
0 answers
23 views

Design settings for "grouped" field

I group by a field in a table. The grouping is correct. The field content is inserted as the respective heading. Is it possible to customize this output in the design? Customize HTML code with the ...
Frank Giesecke's user avatar
0 votes
0 answers
16 views

How do I plot content created per month on a column chart?

I am trying to create a column chart that plots the amount of Change Requests (custom content type) created per month, and how many of those Change Requests are successful. The success is indicated by ...
GeorgeCiesinski's user avatar
-1 votes
0 answers
19 views

Views Cache Result Fills Ups

This is for a Drupal 7 site which is soon to be migrated but looking to optimise in the meanwhile. Site has taxonomy pages in views (as fields as opposed to view modes) showing selected fields from ...
JM John's user avatar
  • 13
0 votes
1 answer
35 views

how to prevent Quoted Orders from appear under both Quoted and Completed sections for the Orders page; Completed Orders also appear under both

Orders are showing up in both COMPLETED and QUOTED.. my screenshot here shows only Quoted Order, yet they appear for BOTH: (please note the first screenshot does not feature any fully completed ...
allenski's user avatar
  • 101
0 votes
0 answers
24 views

How can i prepopulate a webform field before being loaded

I have a webform field called company name and i want that when the webform is opened it has a prepopulated value i want to do it from code because i will have a dynamic variable. THis is the code i ...
joel's user avatar
  • 1
0 votes
0 answers
10 views

How to create view of files upladed to webform with appropriate webform fields data?

In my webform user can attach multiple files. What I am struggling with is creating a view of files (so line per file, not line per webform submission) with webform files and appropriate webform data. ...
petiar's user avatar
  • 366
0 votes
0 answers
15 views

Displaying content in draft mode

A view is set up to display a node's contents. The node contains workflow moderation, like the published status. To make a new change in the content and to preview it, the content is set to draft mode....
jojan's user avatar
  • 1
0 votes
0 answers
16 views

Views Grouped by Row & Column

In Views (Drupal 9), how can I have the first group header be the row header and the second group header be a column? Specifically, I'm looking for functionality similar to this module (only D7-dev) ...
Chris Happy's user avatar
  • 1,887
0 votes
1 answer
73 views

Limit facets (exposed filters) based on contextual filters in a view

I'm trying to limit terms in a view facet (exposed filter) based on a contextual filter. I have products with a 'category/type' taxonomy term. The terms are 2-level, looking roughly like this: ...
Mark's user avatar
  • 133
0 votes
1 answer
63 views

Arrange images and text side-by-side

I've created a view for selected articles to be featured on the homepage. Each article includes the following fields: image, title, body. Currently, these elements are arranged vertically, but I aim ...
radekjoachim's user avatar
0 votes
0 answers
39 views

Is possible to replace a token inside a view field?

I'm on D10.1.x. I need to add a current-user:xx token inside a column of a view. I've seen that by default, the token replacement doesn't work, e.g. if I use [current-user:mail, the token is not ...
Giuseppe's user avatar
  • 939
1 vote
2 answers
95 views

How can I add a CASE statement in a WHERE clause?

I need to add a WHERE clause to the query altered by a hook_views_query_alter() implementation. The WHERE clause needs to contain the following CASE statement. $sql = "(CASE WHEN node_field_data....
Subhash's user avatar
  • 93
0 votes
0 answers
53 views

How to use the user ID in the "more" link of a views block?

I created a media field for users. Users can therefore add media to their profile. I want to display their media on their user page. I created a media view block with a relationship "Connects ...
marsouin's user avatar
-3 votes
1 answer
47 views

How do I access the login page?

I am using the Drupal UI to make changes to a site, and I want to update the page that a user sees when they are not logged in. Is that a view I need to create?
Madison Beatty's user avatar
0 votes
1 answer
29 views

How to switch template for search results without using views and display modes?

I want to show my Drupal 10 Solr search results in either grid view or list view. I set this up using Views and Display Modes, and I have icons on the page which simply link to the URLs of the ...
Lemmy's user avatar
  • 201
6 votes
1 answer
72 views

Why is my body field trimming well under the character limit (94 characters instead of 600)?

I have a view that is supposed to display a body field and trim it to under 600 characters. Most of the time it does that just fine, however sometimes it will trim down to under 100 characters for no ...
Eluchel's user avatar
  • 387
0 votes
0 answers
21 views

Control order views are considered for display based on contextual filters

I have two different views being used to show two different types of content. One is a view to show a taxonomy term and it has a path like this: /foo/faa/% with % being for the term placeholder The ...
fallenturtle's user avatar
1 vote
1 answer
39 views

"Change value" action in Views Bulk Operations?

I'm moving from D7 to D10. One of my favourite and much needed things in D7 was "Change value" action in the VBO administration view. It was quite efficient way to editing many nodes at once....
Szymon Nitka's user avatar
-3 votes
2 answers
342 views

Some results in a view appear twice or more

On a multilingual site I have a view of all nodes with the following configuration: View type: Page Format: Table Fields: Content (title) Filter criteria: Published nodes Sort criteria: Publishing ...
jorno's user avatar
  • 1
0 votes
0 answers
43 views

After upgrading, the Owl Carousel settings are missing

After updating Drupal 10 all functionalist are working fine except in View owl carousel Format some settings are missing. Drupal 9 Setting We have settings like "Items Desktop", "Items ...
vignesh raj kumar's user avatar
1 vote
0 answers
44 views

Views filter with category name

I have built a blog listing page that uses a blog_listing view (set as a block, not page) in it (Drupal 10.1). Here is the setup for the view: As you can see, I have three exposed filters. Blog ...
Akbar Bakhshi's user avatar
0 votes
0 answers
19 views

Custom View Filter for "viewmode" change

I'm implementing View (controller by AJAX) for Commerce project and would like to have the ability to display Commerce Products in two viewmodes in my View. I was thinking about using Contextual ...
Patrick Star's user avatar
1 vote
0 answers
71 views

How to add aria-label attribute to view field link?

I'm hoping to add an aria-label attribute to a link for one of the fields in a view. Is there a way to add an aria-label attribute field or custom attribute field under Rewrite Results --> "...
gerbil_wrangler's user avatar
0 votes
0 answers
46 views

How to do calculations with aggregated results of a row

I'm using Views Aggregator Plus do aggregate the results of columns. However, I cannot do calculations with the result. This is because the module always does the aggregation last. The aggregation ...
CeeA's user avatar
  • 53
0 votes
0 answers
37 views

Why is my custom block name not being generated?

I created a custom block called "Heading, Body, and Link" and the name being suggested for the Twig template in the source code is block--block-content--72dacf39-0242-4eaa-9226-171add6f87d2....
TR0V3R's user avatar
  • 1
1 vote
1 answer
114 views

Expose taxonomy term contextual filter in Layout Builder

I have created a view block for a content type of card. The card content type also has a taxonomy vocabulary where users can add new terms to that taxonomy vocabulary. I have a contextual filter on ...
huijing's user avatar
  • 209
-1 votes
1 answer
73 views

How to style the h2 title of "search results"?

The "search results" H2 element on the search results page does not appear to be controlled by any specific template. I'm using stable9 as the base. How can I style it?
Victor Pudeyev's user avatar
0 votes
0 answers
76 views

Conditional dropdown select menu

I'm using the Webforms module for Drupal 10 and I am trying to create a form with 2 select boxes related to 2 content types: Content type: "Country" Content type: "City" I'd like ...
BMM's user avatar
  • 103
1 vote
0 answers
32 views

How do I always show full search result pages in cases where some results are removed due to access restrictions?

I have a solr search index set up and a view to search content. We have "Region" groups for members so they only see content from their region. The search works great as admin who has access ...
James Prunty's user avatar
0 votes
2 answers
88 views

Make a header of a view page to appear only in the view's first page

I have a view-page with a pager of about 10 pager-pages. This view also has a a view-header. The text of this header repeats itself in all pager-pages of that view, which is a bit funny because in ...
ali's user avatar
  • 3
0 votes
1 answer
72 views

Sorting by title of a referenced entity instead of ID

On a view, I have a content type "A" that references another content type "B". Content "B" has, for eg, the following records: ID 1: Title "AAA" ID 2: Title &...
BMM's user avatar
  • 103
0 votes
1 answer
57 views

Change View webform link edit to edit/all

I am currently using drupal 10 and I created a page using View (acquiring webform with pages). In View I add link edit webform. When I click edit, it can open the submission as expected. However since ...
Waluyo Adi Siswanto's user avatar
0 votes
0 answers
40 views

Create view for inline images

I know how to create a view that shows only images. Is it possible to create a view that also includes all inline images?
Dirk Bosman's user avatar
1 vote
2 answers
124 views

Inform the user what page of the pager it is -- on top of the page as well

When we create a View of pages we can give it a pager. That pager typically appears underneath the view. This can cause an accessibility problem of a user mistakenly clicking to go to a next page ...
webtech's user avatar
  • 19
0 votes
0 answers
33 views

Shipping cost is not up-to-date on the order_information page. Checkout page displays shipping properly

It's a Drupal 8 Commerce site, and we just changed the shipping rate from 2,90 to 3,5€ Although the shipping rate appears just fine on the checkout/####/review page, On the checkout/####/...
escozul's user avatar
0 votes
1 answer
85 views

Expose View of Visitors information via JSON:API

I've enabled the JSON:API Views module to expose View data via the JSON:API. I've created a page view of Visitors data. Preview data suggests that there is data available. The view is set to be ...
Kyle's user avatar
  • 1
0 votes
1 answer
90 views

How can I render a Paragraph field in the views unformatted template?

I'm simply trying to render a Paragraph field from my content type in a view template. It's insanely difficult! I have the field setup to display the rendered entity, but how do I set it up in my ...
Robert's user avatar
  • 1
0 votes
0 answers
141 views

How create a custom views contextual filter?

I've a site using Drupal 10.1.x. I need to implement the following requisites: Let the users choose their "most liked" nodes (bundle product). This bundle has a entity reference field to ...
Giuseppe's user avatar
  • 939
0 votes
1 answer
101 views

How to format a view to show content but without a teaser?

I want to format a View to show content but without a teaser. I can choose fields instead content but then I don't get all the CSS sytling I get with content. I can hide the teaser in the View page ...
viewer's user avatar
  • 1
2 votes
0 answers
106 views

Media library filtered results are broken after a new media item is added [closed]

After recently updating from Drupal 9.5.11 to 10.1.5 we have spotted some issues with the results displayed in the media library widget. Basically if I filter results, for example on the string "...
Mathew's user avatar
  • 313

1
2 3 4 5
304