20,348
questions
0
votes
0
answers
14
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, ...
-1
votes
0
answers
5
views
Weight Vocabulary - sort vocabulary - (not terms)
But I need to sort the vocabularies in a page based on admin choice. To be clear, I am not talking about terms, I am talking about the vocabulary, the parent holding the terms.
As per what I read,...
0
votes
0
answers
22
views
Custom Webform Element in Drupal: Radio Buttons with Score Input Field
I'm developing a custom Drupal module to add a new form element to the Webform module, which allows users to assign a score to each option in a radio button field. I’m new to Drupal development and ...
1
vote
0
answers
19
views
Trouble querying childImageSharp with Gatsby and Drupal
I am working on a gatsby with Drupal CMS project and am currently facing an issue regarding gatsby-plugin-image with the images coming from the CMS.
I am trying to replace all my tags with components ...
0
votes
1
answer
19
views
Dockerized drupal renders fine locally but not when proxy-passed in Apache
I successfully dockerized an existing drupal 7 website with the following:
# Dockerfile
FROM drupal:7.101-php8.2-apache
COPY webroot /var/www/html
WORKDIR /var/www/html
EXPOSE 8006
# docker-compose....
0
votes
0
answers
38
views
Drupal FillPDF module says 'PDF does not contain fillable fields.'
It does have fillable paths, and there are no permission settings that would prevent access to the PDF. I'm using pdftk - installed on IIS. The path is configured and permissions are set. Is it ...
0
votes
1
answer
30
views
Lando Parse Error: Header overflow on Drupal10 site
Im getting the follow error when I start up Lando:
URLS ⚠ APPSERVER URLS ✖ Parse Error: Header overflow ✖ Parse Error: Header overflow ✖ Parse Error: Header overflow ✖ Parse Error: Header overflow
not ...
0
votes
0
answers
26
views
Create a view to display a field that is specified by parameter
I need to create a view in Drupal 10 that shows all nodes of a set content type that has a given field not empty.
But I want to pass the field name/id as a parameter.
So the view will return all nodes ...
-1
votes
1
answer
18
views
Drupal 7 - Checkboxes & radios that failed validation do not show a red box around them like other fields
In Drupal 7, the default behavior for a field which fails validation is to show a red box as the border of the field. For example, if the field was required but no input was supplied.
This works ...
0
votes
1
answer
23
views
Drupal 10. Preview content by content type
Is it possible to Preview Drupal content by content type? Currently the preview template options are
page--node--preview--f7fd5df8-d58d-42f8-b274-8d224eddbb5a--full.html.twig
▪️ page--node--preview-...
0
votes
0
answers
27
views
Error Drupal SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type bigint
I have an error after migrating Drupal database from MySQL to PostgresSQL. All works fine, but when I want to add a node (all types), an error fires:
Drupal\Core\Entity\EntityStorageException: ...
0
votes
0
answers
35
views
What is the best way to validate an uploaded file in drupal 10
I'm creating a custom module where people can fill out a form to apply for a job. Of course I want to implement form validation but it goes wrong when I want to validate the uploaded file.
I can't ...
-1
votes
1
answer
28
views
Drupal - MYSQL Entity diagram
please share entity diagram for the default core drupal tables and the respective primary and foreign key mappings with other tables.
Example:
Need to see the relationship between these tables
1....
0
votes
1
answer
80
views
Why am I getting an error when I try to install Drupal?
I'm trying to expand my web dev skillset, so I installed Drupal 11.0.1 via cPanel/Softaculus to play with. However, the page refuses to load (HTTP ERROR 500) and this is the error shown in the ...
0
votes
0
answers
32
views
How to add a class to item of a list in Drupal 10
I have created an item list inside a foreach loop like
$items[] = [
'#markup' => 'some html text'
]
then pass it to
themed_list = [
'#theme' => 'item_list',
'#items' => $items,
'#...