All Questions
87,314
questions
0
votes
0
answers
6
views
How to create a page with a specific form display?
And how do form displays work at all? I have a content type "Sketch" that has an image. As an authed user, I can create a Sketch at /node/add/sketch . But that uses the default form - how do ...
-1
votes
0
answers
38
views
How to install Drush in an offline environment?
I have downloaded Drush 12 and placed it in /usr/local/bin. I have made the appropriate changes to composer.json to load a repo from a local path, so everything is lined up except for the dozen or so ...
0
votes
0
answers
15
views
With Field Layout, Display Suite, and Panels deprecated how does one change the layout of a form display to be more than a single column?
I am working on Drupal 10.1 and without Field Layout, Display Suite, and Panels modules installed there are not options to change the layout settings beyond the Content and Disabled sections.
What ...
-1
votes
0
answers
8
views
Add Payment in sidebar - checkout-flows
On Payment stage, we want the PayPal payment button at the bottom of the sidebar, on the right, below the summary. Any tip? Unless I missed something about this to the payment process to the sidebar?
...
0
votes
0
answers
24
views
Blind SQL Injection vulnerability?
What is the purpose of this unique ID appended to this class in Drupal 9 HTML?
js-view-dom-id-7881eb5bafcd4178e6af77ed45179be612e74557a6807989024fac282b24f164
I'm getting what I believe are false ...
0
votes
0
answers
18
views
Form states API configuration first page load not working
I would like to show a text field when a checkbox is checked and a specific option is selected in a select list
The form works fine when there are no values in and the form is loaded but doesn't work ...
-3
votes
1
answer
75
views
How I can use Drush for portal deployment and redeployment?
I have downloaded Composer on a Windows 11 computer. I have installed Drush with composer require drush/drush, or maybe composer global require drush/drush.
As I haven't mentioned any specific version,...
0
votes
0
answers
32
views
Why am I not able to log to rsyslog?
I am trying to use System Logging on a Drupal 9.5 site running on CentOS7. I have followed the guide from here: https://www.drupal.org/docs/8/core/modules/syslog/overview and have the following set up:...
1
vote
2
answers
94
views
Why can't I disable CSS caching?
Background
I am developing a custom theme for my Drupal 10 site. I found myself constantly flushing the cache, so I have been looking up ways to disable the cache on my local dev site. My end goal is ...
-2
votes
1
answer
27
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
14
views
How to get a webform submission by uuid in a custom controller before submit?
Before we submit our multi step webform, we do a ajax call to a custom controller. Ideally this controller would set some of submission values "under the hood".
The problem is, that at this ...
0
votes
1
answer
19
views
How to form_alter a specific webform ajax page based on values of the page before?
We are building a registration form with multiple pages (in ajax mode), on the first page, we select the number of participants and on the next page we are displaying a custom composite form to ...
0
votes
0
answers
39
views
Does disabling the Drupal cache also disable the CSS Cache? [duplicate]
I am having trouble disabling caching in Drupal 10. To be more specific, I am trying to disable the cache using the Admin interface so that I don't have to manually edit any files in case I ...
0
votes
0
answers
18
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.
...
0
votes
1
answer
31
views
Multiple primary key defined When importing DB to Dev
I'm trying to update my D9 dev site database using my production database, but it keeps erroring out when it reaches to ALTER table section in the database.
This is the
ERROR 1068 (42000) at line ...
1
vote
1
answer
21
views
How to enable WebP upload to a custom form's managed_file input
This question is not about image styles, which are all already configured to accept WebP.
Our theme uses a custom form with elements like
$form['cta1']['fp_cta1_background'] = [
'#type' ...
1
vote
0
answers
22
views
How do I prevent the language code being stripped from the URL pathway?
Problem
When trying to link to example.org/fr/node/1, links directs to
example.org/node/1.
Same problem when using direct pathways instead of node links. Trying
to link to example.org/fr/a-propos/...
1
vote
0
answers
8
views
Limited languages choice on the creation of some type of node, not all
I inherited a Drupal 7 installation where I have a problem on a new node creation: on some types of node the SELECT language choice is limited to 3 languages, on one type the SELECT is empty, while on ...
1
vote
1
answer
40
views
Why do routes created in a React router that do not exist in Drupal give a 404 when I reload the browser?
I have a Drupal 10 site with one page at the following URL: localhost:9090/my-page. On that page, I have a Drupal block that includes a React app with its own Browser Router.
React BrowserRouter ...
1
vote
0
answers
9
views
How to send webform's full URL to Salesforce
We are creating Leads in Salesforce from Webforms submissions and now we want to include the full URL in a Salesforce field.
I have tried Submission URI field but it does not include the host nor the ...
1
vote
0
answers
20
views
Getting deprecated error for guzzle http in php 8.1 backup and migrate azure module
I am using php 8.1 for drupal 9.5.9 application. I wanted to take and restore database and code backup for which I am using Backup and Migrate module with backup and migrate azure module. But I am ...
0
votes
1
answer
102
views
Display paragraph field value in field.html.twig - Paragraphs module
I need to display a field value available to paragraph.html.twig in field.html.twig.
I have a paragraph type called buttoncontainer with a field name called field_background_color. I have a paragraph ...
0
votes
1
answer
20
views
Webform: Remove automatically generated empty composite item in results edit
When I enable, submit, and edit results in the webform example composite module, an extra item is automatically generated.
I'd like to keep "Add 1 more items", but remove the automatically ...
0
votes
1
answer
23
views
Is there a trick to hide the time portion of a date-time field in a form?
I have some fields that are "Date and time". I want to ignore the time portion and only solicit date portion from the user. However, since there is already have data in these fields, Drupal ...
1
vote
2
answers
83
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
33
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
0
answers
29
views
How can I programmatically get the node title? [duplicate]
A drupal newbie here. I'm looking to build an "issues navigator", a custom block displaying a menu. I'd like to set the "current issue" automatically, from the title of the node ...
0
votes
0
answers
31
views
Expired session - Invalid form POST data - Ajax
On my Drupal 7 I have a multisep form that uses ajax to validate and to submit the answer.
The form is used for an authenticated or anonymous user to answer a set of questions.
Everything is fine, ...
0
votes
1
answer
26
views
I can't access the login page
I have a backup of a site built with Drupal 7.60. I was able to complete the installation on my local machine, but I could not access http://localhost/showbizz-plaza/?q=user nor http://localhost/...
1
vote
1
answer
41
views
How to programatically load the blocks that are shown on a specific page?
I need to programmatically update the paths for blocks that are displayed on a specific page, I can load all blocks using:
$nodeStorage = \Drupal::entityTypeManager()->getStorage('block');
$ids = $...
-2
votes
0
answers
32
views
Why are utm_ query parameters removed from the form action, but not, e.g. fbclid?
I noticed that in Drupal forms that submit to the current page, utm parameters (utm_source, utm_medium, etc) get removed in the form action.
Other parameters (fbclid for instance) are not removed, so ...
0
votes
1
answer
21
views
How to create reusable custom block templates or duplicate existing blocks?
Drupal noob here.
Problem: Unable to reuse blocks created using Bootstrap Layouts module; being forced to manually re-enter data in order to duplicate a block in a new locaion.
Details and any ...
2
votes
1
answer
32
views
How can I get the untranslated field value from a translated paragraph?
Normally you can't have different paragraph items per language so I simply want to hide selected paragraphs depending on a field value in the paragraph. I added an untranslatable list field listing ...
-2
votes
0
answers
26
views
Unable to apply conditional logic to Webforms "More" element
Using Drupal 9, I have been unable to apply conditional logic to a More element in Webforms. The same logic works in other elements (like Item), so it is being applied correctly. Is this a known issue/...
1
vote
1
answer
84
views
Opening a nested paragraph in a modal window
I have a paragraph (image with some fields) inside a parent paragraph.
Inside the template of the parent paragraph I'd like to open the nested paragraph via link () in a modal window.
How can I access ...
-3
votes
0
answers
26
views
Cannot add content after uninstall of DXPR module - this is the error
The website encountered an unexpected error. Please try again later.
TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, class "Drupal\dxpr_builder\Entity\Node" ...
2
votes
2
answers
75
views
How to show menu tab only for certain node type?
I have the following,
In the routing.yml
mymodule.cache_clear:
path: '/node/{node}/cache'
defaults:
_form: '\Drupal\mymodule\Form\APICacheClearForm'
_title: 'Cache Clear'
requirements:
...
-3
votes
1
answer
49
views
Permission denied error using Wkhtmltopdf on drupal 9 entityprint [closed]
I downloaded the Wkhtmltopdf library using Homebrew and configured it on drupal 9 on the entityprint module on /admin/config/content/entityprint. It is in the /usr/local/bin directory, but when I try ...
0
votes
1
answer
50
views
The title of a particular node became part of the breadcrumbs of administration pages
In the Claro theme, I have the System breadcrumb block in the Breadcrumb region. The breadcrumb shows Homepage > [Title for node 444] > Structure > [Administration page title] instead of ...
0
votes
1
answer
24
views
How to pass block instance configuration settings to TWIG template?
I've got a custom block plugin which has some configuration settings that can set from the block configuration form. How can I then access that configuration info later when the block is being ...
0
votes
1
answer
53
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
23
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
16
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 ...
-3
votes
0
answers
27
views
How can I change the search button to use the Fontawesome search icon?
I am running drupal 8.5.0 and have a search bar. I want to change the Search button and use a fontawesome search button. I have installed fontawesome Version: 8.x-2.14, its corresponding libraries in ...
0
votes
0
answers
22
views
The hacked module report is not able to fetch the information of the enabled modules on the site
I am trying to use the Hacked module report for a site audit. However it has trouble fetching the data of the available modules on the site.
When tried using the drush commands of hacked module, I am ...
0
votes
0
answers
11
views
Why many empty revisions are created via JSON:API?
I'm a D9.5.x site.
I've a content type with content moderation and content translation enabled and configured.
That content type has also a paragraph field.
Despite this kind of setup not being ...
0
votes
1
answer
16
views
How to Save Configuration Data for Custom Block
I'm have a custom module that creates a custom block plugin, but am having trouble figuring out how to add some custom configuration settings to the block.
Just for understanding how to do this, I've ...
1
vote
0
answers
11
views
How to create a custom field/facet for Search API?
My Search API search page has a facet for Content Type, but I now want to add a custom entity in to the list of "content types" that users can filter on. I found some documentation on ...
0
votes
1
answer
23
views
Custom webform Element not rendered
It looks like this is a frequent question, but I still can not figure out, why my custom webform element is not showing up. (I read already this post and also the example module)
web/modules/custom/...
0
votes
1
answer
66
views
Website doesn't load properly from htdocs/web
Built a website on localhost, moved it to shared-hosting where webroot is htdocs but when visiting the website through the hosting's given IP address it obviously doesn't load the website, because the ...