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
5 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
16 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
0 answers
25 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
12 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
-1 votes
0 answers
15 views

Preparing and sending a press review

Opening note : It's been a few years since I last used Drupal. The company I work for needs to send a quarterly press review to a list of clients. Each article has to be reviewed to ensure that it is ...
Druqué's user avatar
0 votes
0 answers
9 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
14 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
15 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
62 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
56 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
-1 votes
0 answers
34 views

How to prevent a view of taxonomy terms to appear in nodes?

I have created a view of taxonomy terms with the terms filitered by published and sorted by random. My problem is that this view block appears both in nodes and in taxonomy term pages while I need it ...
aaa's user avatar
  • 1
0 votes
0 answers
33 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
  • 907
1 vote
2 answers
89 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
43 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
28 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
69 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
20 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
28 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
330 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
39 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
43 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
17 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
52 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
36 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
0 votes
1 answer
96 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
  • 199
-1 votes
1 answer
70 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
63 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
31 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
87 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
60 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
54 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
39 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
122 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
32 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
76 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
78 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
94 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
  • 907
0 votes
1 answer
100 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
88 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
0 votes
1 answer
39 views

Add paragraph fields to a view

I have a content type "view" that has a paragraph attached to it, giving the ability to add a body, image, file, block, etc. I need to create a view for the blog listing that will show the ...
Jenni Simonis's user avatar
0 votes
0 answers
28 views

How to make autocomplete works with the Japanese language?

I'm working on setting up search with the Search API module and Elasticsearch, for the Japanese language. Following what described in How to implement Japanese full-text search in Elasticsearch, I ...
Nasreddine's user avatar
-3 votes
1 answer
42 views

A complicated question about views, pls help~ [closed]

May I ask how to achieve this requirement? There is a task content type, which has an applicant field, which is multi-valued (that is, a task allows multiple people to apply at the same time), which ...
Major's user avatar
  • 1
0 votes
1 answer
21 views

How to move on to the next profile page in views after flagging a profile within the view?

I created a view that current user can use to search/view user profiles. The view lists user profiles and shows one at a time. A profile page can be either flagged “Like” or “Pass” (dating website ...
Dee's user avatar
  • 512
0 votes
0 answers
56 views

View breaks the page output

Has anyone encountered this problem or can at least help me debug it? The views is displayed as standard if the parameters are specified. Format:Unformatted list | Settings Show:Field If I change it ...
drupnub's user avatar
0 votes
1 answer
100 views

How to have views exposed filter value show as different value in the url?

I have a search page with a Views exposed filter for the name of a taxonomy term. I have added an #autocomplete_route_name to the form element to make this an autocomplete selector for my term names. ...
liquidcms's user avatar
  • 1,248
0 votes
0 answers
19 views

Prevent view results duplicate caused by workflow transitions

I have a view that lists content fields and it works fine, but, if I want to add a workflow field to the result (I have a field called reject_reason attached to workflow), I added workflow transition ...
Abdulmuhaymin's user avatar
0 votes
0 answers
46 views

Block View context filter does not appear in block configuration in layout editor

I am building a site in Drupal 10. I have created a View Block for displaying team members. Team Members have a field that is a taxonomy term (for what team they belong to), and a related context ...
blackorchid's user avatar
0 votes
1 answer
32 views

How do I sort view results by query order?

In my twig I use {{ drupal_view('slider', 'block_1', '74,84,82' ) }}, how can I make sure the output of this view has the slides in that specific order? Currently on D9. I've looked around but can't ...
Lenny's user avatar
  • 214

1
2 3 4 5
304