Questions tagged [views]
The Views module allows creating lists of entities with a flexible query builder.
15,174
questions
0
votes
0
answers
23
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....
-2
votes
0
answers
22
views
How to fix "missing schema" errors, which are reported by "Configuration inspector" module?
I have just installed the module "Configuration inspector". When I call "/admin/reports/config-inspector" I see many errors, mostly "missing schema". How can I safely fix ...
0
votes
1
answer
61
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 ...
-1
votes
1
answer
60
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?
0
votes
0
answers
44
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 ...
1
vote
0
answers
29
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 ...
0
votes
2
answers
72
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 ...
-1
votes
0
answers
43
views
Select options and views with or without "Webform" module
Is there any known way to bind the select options of a webform to the output of a view? I'm thinking of a webform implemented with the Webform module, though I may consider other solutions.
I searched ...
0
votes
1
answer
45
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 &...
0
votes
0
answers
26
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 ...
0
votes
0
answers
35
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?
1
vote
2
answers
117
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 ...
0
votes
0
answers
25
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/####/...
0
votes
1
answer
58
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 ...
0
votes
1
answer
43
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 ...
0
votes
0
answers
45
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 ...
0
votes
1
answer
94
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 ...
2
votes
0
answers
60
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 "...
0
votes
1
answer
30
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 ...
0
votes
0
answers
25
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 ...
-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 ...
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 ...
0
votes
0
answers
53
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 ...
0
votes
1
answer
64
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. ...
0
votes
0
answers
18
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 ...
0
votes
0
answers
29
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 ...
0
votes
1
answer
24
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 ...
-1
votes
1
answer
48
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 ...
0
votes
0
answers
33
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 ...
1
vote
0
answers
46
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 ...
0
votes
1
answer
78
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 ...
0
votes
1
answer
53
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,...
0
votes
0
answers
55
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 ...
0
votes
2
answers
92
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'...
1
vote
2
answers
155
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 ...
0
votes
1
answer
50
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 ...
0
votes
0
answers
28
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 ...
0
votes
0
answers
27
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 ...
0
votes
0
answers
31
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 ...
0
votes
0
answers
31
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 ...
-2
votes
1
answer
37
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:
...
0
votes
0
answers
31
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.
...
1
vote
2
answers
103
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/...
0
votes
1
answer
34
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&...
0
votes
1
answer
94
views
Why does this Twig code not work?
I've recently upgraded my Drupal 9.5 website to Drupal 10.1. Everything went smoothly except for a Display with Views that contained twig code within one of the fields to rewrite the results.
Prior to ...
0
votes
1
answer
44
views
Multilanguage View path translation
I'm building a multilanguage site and I have a View of taxonomy terms with the following configuration
when I hover the menu Wines I can see the /en/products link, that's perfect
when I switch to my ...
0
votes
0
answers
45
views
How can I programmatically set the options for a views exposed filter?
While it is possible to use hook_form_FORM_ID_alter() to programmatically set the options for any select input, with a views exposed filter there is the added complication of not knowing how Drupal ...
0
votes
0
answers
26
views
User flag is not parsed
In a view I am displaying a list of nodes with their authors. The authors are displayed as an entity with a certain view mode, which includes a flag on the user/author. People can flag the author of a ...
1
vote
0
answers
22
views
Adding a new format for a (view) block?
On my site, content type Lead has field Rating (1-5). Content type Recruiter also has field Rating (1-5).
I want to have a specific "display": a list of Leads, sorted by rating, where equal-...
1
vote
0
answers
34
views
How to determine what values to set when preprocessing views exposed filter options?
When we set options for a views grouped filter using the views GUI, the select input's option values do not match the values we set in the GUI.
For example, if we use the GUI to set the Grouping 1 ...