Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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
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
3 votes
1 answer
105 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
345 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
  • 43
0 votes
0 answers
51 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
53 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
20 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
108 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
50 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
143 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
77 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
103 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
96 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
114 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
61 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
41 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
126 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
35 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
106 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
105 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
240 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
  • 971
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
142 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
70 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
33 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
44 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
59 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
148 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,278
0 votes
0 answers
20 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
63 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
44 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 votes
1 answer
57 views

Fields/custom text show translated label for field

I am building a bilingual site with Drupal 10 and I am using views to show content items listings. In my views I am using field: Custom text to format the teasers of each item the way I want. I have ...
thanili's user avatar
  • 107
0 votes
0 answers
35 views

Show next two days that events occur on

I've revisited this multiple times, and have yet to figure this out. I have a calendar with events on it. No event ever spans multiple days. There are also days that do not have events. I'm trying to ...
Jason Glisson's user avatar
1 vote
0 answers
51 views

Configuring view with multi-select filter for exclusive subject matching

How can I configure a Drupal 10 View with a multi-select exposed filter to display teachers who exclusively teach selected subjects? Currently, the filter shows teachers who teach any of the selected ...
JavaScript is my Love's user avatar
0 votes
1 answer
188 views

Create tabs with paragraphs and Bootstrap tabs

I'm working on a project that consists of transferring a laravel website to drupal. One of the features that I'm having difficulty recreating is separating content information into tabs. This content ...
LordCaosWInc's user avatar
0 votes
1 answer
65 views

Image field and links not showing in view block template

I have a CT team_members with the following fields. field_team_member_image field_team_member_name field_member_designation field_social_media_links(Multiple values with links to twitter, instagram,...
KTM's user avatar
  • 2,362
0 votes
0 answers
60 views

Tokens in fields label of a view

I have a view where I show the content of fields. I check "Create a label" for a field. The label shall be filled dynamically based on the content of another field. Is there a way to use ...
CBi's user avatar
  • 1
0 votes
2 answers
240 views

How can I programmatically update an exposed filter? [closed]

I am trying to apply an exposed filter programmatically. If filter 'a' is set to 'apple' I want to set filter 'b' to 'green'. Using this code updates the filter. If a user sets the drop-down filter 'a'...
Saml's user avatar
  • 1
2 votes
2 answers
408 views

Get the view object in a custom block plugin

In Drupal 10, I want to create a custom block plugin. Blocks instances of this new block type would be placed in a region on a View page. How can I gain access to the View object from a programmatic ...
jackrabbithanna's user avatar
0 votes
1 answer
62 views

Why is the Charts module not working for anonymous visitors?

I'm using the Charts module in my project. I've configured Google Chart in my custom view which needs to be shown to anonymous users. The view is shown, but the chart is not rendered for anonymous ...
zed Blackbeard's user avatar
0 votes
0 answers
34 views

Show user fields on user page if user has flagged the viewer

I am stuck with a specific problem with flags and users and views. I have a flag on the user entity. Users can flag each other. Everything happens in logged in mode. Every user has some private fields ...
Matthias's user avatar
0 votes
0 answers
37 views

Configuration synchronization

I am trying to import views from one of my Drupal 9 sites, we will call it Drupal A to another Drupal 9 site, we will call it Drupal B. I keep getting this error: Error message The configuration ...
Madison's user avatar
0 votes
0 answers
35 views

What hides nodes from roles in search results using Solr?

We are hosted in pantheon and using Solr for search. At some point in the build process search stopped working for specific roles. As an admin I see all the nodes I would expect. however for some ...
BrandenB171's user avatar
  • 1,112
0 votes
0 answers
37 views

View media with group permissions

I have a file media type and these files will be private files, with different access levels (1, 2 etc). What I need View page only for registered users, if the user has granted access level 1, the ...
Pedro's user avatar
  • 144
-2 votes
1 answer
52 views

View not showing result based on taxonomy term contextual filter

I have a view and same in D7 and same I created in Drupal 10 but the output is not as expected. I found in Drupal 10 we don't have Filter Value type in Drupal 10 Below is the Drupal 7 view query: ...
Drupal's user avatar
  • 1
0 votes
0 answers
57 views

Facet source not showing after upgrading to latest version

I recently updated one of our projects to Drupal 9.5.10 and facts to 3.x version. After updating to latest versions, facet source is not displaying and unable to add facet summary with existing views. ...
Santosh Kumar's user avatar
1 vote
2 answers
189 views

How can I display translated content by language?

I have a view with multiple displays, each configured as follows. Display 1: Articles FILTER CRITERIA: Content: Published (= Yes) Content: Content type (= Article) PAGE SETTINGS: Path: /articles/...
Happy Coder's user avatar
0 votes
1 answer
42 views

Override output of taxonomy name field

In drupal 9, the default output for a taxonomy term name field related to a specific piece of content is: <element>"Item1, Item2, Item3"</element> I want: <element>Item1&...
tanbog's user avatar
  • 1,263