1,825 questions
1
vote
1
answer
27
views
Drupal Twig in View Global Text date_modify Fails
My intent is to add days to a date field with a view Global text.
{{ mydate|date_modify('+7 day')| date('d-m-y h:m:s') }}
mydate is using HTML Datetime format and outputs as 2025-10-15T12:00:00+0000
...
0
votes
0
answers
31
views
How to prevent Drupal from making view feed links all relative
I have a Drupal 10 site where I created a view with an RSS feed. The links for the items are to various outside websites - for example https://www.yahoo.com/news_article.
The problem is that my site ...
0
votes
0
answers
70
views
Drupal 10 - How to display a list of nodes associated with a selected location on a map, both in a side panel and a map popup
I have a feature in this Drupal system I'm working on which has a map view (using Leaflet) that shows all terms under "Location" with the polygon as the highlighted area of the location. It ...
0
votes
0
answers
59
views
How can I change the pager type after x pages programmatically in Drupal views?
A View in Drupal returns several hundred of items. For user's comfort I want the first pages to be loaded automatically using ajax. For this I use the "infinite_scroll" pager module. I load ...
1
vote
0
answers
97
views
Drupal 11: Module to provide a contextual filter for views
I have programmed a Drupal 11 module.
It's about a Views plugin to be able to use a contextual filter in the GUI.
The module is intended to provide two context filters in one View (Views module) under ...
0
votes
1
answer
114
views
How to use joins in hook_views_query_alter()?
I am working on an application that is running on Drupal 10.3.6
I wanted to add role based access to the content visible on Content view (/admin/content).
I have to use a JOIN on 2 tables but the ...
0
votes
0
answers
30
views
How can I fix the issue where the open filter with views Contextual filters?
I have a Views page that displays based on the context of the taxonomy term name.
Path: /category/network/%
drupal views
Example page: /category/network/ethernet, where "ethernet" is the ...
0
votes
1
answer
79
views
Drupal Twig variable initialization error
The problem I'm trying to solve is this: I need a unique (but human readable) class name to be able to style Taxonomy Term page depending on the term shown. I unsuccessfully tried several approaches, ...
0
votes
1
answer
230
views
Add custom class to drupal 9 menu item
I have been working on website which is prepared in Drupal 9. I need to apply custom class
to menu item to trigger some other events. I come across changes in code as per below link:
https://drupal....
0
votes
0
answers
143
views
Error when trying to add Contextual Filter in Drupal Views
I am working on a Drupal Commerce project.I am running Drupal Version 9.5.11 and Commerce Version: 8.x-2.38 I am trying in my Product inner page to show other Products that have the same category with ...
0
votes
1
answer
340
views
Upgrade the drupal 7.88 to drupal 10.1.1
I have update the my drupal website 7.88 to 10.1.1. It's all process using composer. But i have facing some issue in admin panel.
I have checked the drupal version is upgrade or not. Using command ...
1
vote
2
answers
1k
views
Drupal 10 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
1
answer
217
views
Views and Blocks translation
I tried to translate views and block with two new languages on a website (there are 6 others languages who work perfectly).
When I tried to translate views or blocks with theses two new languages, I ...
0
votes
2
answers
2k
views
Drupal 9 - Output Views "Content: Link to Content" url to views-view-unformatted....html.twig template
I am trying to output the url alias from Views "Content: Link to Content" in a Twig template of the format views-view-unformatted....html.twig. The url alias outputs successfully in the ...
2
votes
0
answers
60
views
How to configure the decimal inputs in Better Exposed Filter module in Drupal?
I have a problem with using Better exposed filter 6.0.3 in the view to filter the number values with decimal. In range minimum, range maximum and Step it shows like it allows certain decimal digits ...
0
votes
1
answer
578
views
Core Taxonomy Term Views using Search API Indexed content, NOT normal content
This seems like a logical use case, but I cannot find any information about how to do this. I am creating a large, number of pages, site and want to use Solr Indexed data on the Taxonomy Term pages. ...
0
votes
1
answer
842
views
Drupal 9: Get rendered view within Content type
I have several views that I need rendered within pages. I have a field to pull in these views as blocks within the content editor, but I am running into an issue where the only display options for ...
0
votes
1
answer
747
views
Why the title of the View does not change, but a new string is added next to it when I use the method setTitle()?
The view page has an exposed filter by field category. When choosing a category, I need to change the title of the view (view uses Ajax) to the selected category in the filter. Since by default the ...
0
votes
1
answer
923
views
How can I get the translated term with entityTypeManager in Drupal 9?
This is the code. How can I get $tree translated to the langage inserted in $langage.
$language = \Drupal::languageManager()->getCurrentLanguage()->getId();
$tree = \Drupal::entityTypeManager()-&...
0
votes
1
answer
78
views
how reslove responsive image in custom module to Drupal 9
I upgrade the drupal7 to drupal9
how i can make the responsive image in custom module
$banner_img['large_image'] = $base_url.'/'.$module_path . '/images/flower-02.jpg';
$banner_img['mid_desktop_image']...
1
vote
1
answer
118
views
exception 'Drush\User\UserListException' with message Unable to find a matching user for admin
I am using the drupal7 I have been executed this command in git bash -./prepare_db_for_dev.example.sh
In below, it give error.
Reset admin password to "admin".
Drush\User\UserListException: ...
0
votes
0
answers
294
views
Show more/less button in Drupal view columns
My view looks as below:
In this view the "Category" column is a list of taxonomy terms selected against every file field. I would like to show only 2 terms and then show a "show more/...
1
vote
0
answers
374
views
Drupal Views: Remove actions(edit button) on drupal views from view_pre_render hook conditionally
Drupal Views: Remove actions(edit button) on drupal views from view_pre_render hook conditionally:
I am trying to hide/remove the edit button for few records conditionally on a view from the hook ...
0
votes
2
answers
1k
views
How can I see/access the revision history of a Drupal user in Drupal 9
How can see the revision history of a Drupal user. I can see the history on content types, but I don't know how to access this same data for a Drupal user. So if i am here
user/13/edit there is no ...
0
votes
0
answers
193
views
Drupal views: bring nodes with taxonomy term X to top
I have a simple view of fields (drupal 9) that lists nodes from a single content type (client). A node has a taxonomy reference field (field_client_country) where an editor can add the country or ...