Newest Questions

0 votes
2 answers
70 views

Outputting text field in a view to show all HTML tags

Content has been added to my site using various input formats, but none of those has the "display any HTML as plain text" filter selected. So in other words text is formatted with things ...
Richard's user avatar
0 votes
1 answer
35 views

Storybook always shows an error

I have installed the Storybook module, which converts .stories.twig files into .stories.json files. I have the following lines added to the package.json file. "@storybook/addon-a11y": "^...
Pedro's user avatar
  • 144
0 votes
0 answers
43 views

Can't get date value in hook_form_alter

I'm trying to write a hook_form_alter for form validation. My form has a datetime field that is holding a date range. The field is field_session_datetime. I cannot get the value from the form via $...
gmak's user avatar
  • 57
0 votes
1 answer
39 views

Why core and contrib modules and installed only in vendor?

I've a Drupal 8 installation, I don't understand why core and contrib files are download, with composer install, in vendor directory. EDIT: with this file, after clone the repository, core and contrib ...
arrubiu's user avatar
  • 3,294
-3 votes
1 answer
84 views

Language detection duplicated aliases into a new set of language-directory aliases

My problem is that after activating language detection with all options enabled, thousands of new language-directory-aliases (/en/alias or /ar/alias etc.) have been detected in my website by Google ...
simpleman's user avatar
-1 votes
1 answer
51 views

Published a tag for new module in drupal.org but its not available in composer

We have published a new tag for the newly created module in drupal.org https://www.drupal.org/project/override_cache_control_headers. But the composer require command is missing in drupal.org page. ...
sandy's user avatar
  • 468
0 votes
0 answers
35 views

In a Right to Left website, how can I make English webpages Left to Right?

My website's primary language is a Right to Left language but one content type and its node are both set to English. My problem is that the node appears Right to Left. What can I do to solve this ...
simpleman's user avatar
0 votes
1 answer
28 views

Is it possible to resize an image resolution during upload?

We have a Drupal 10 site that uses a core file image field for admins to attach photos. Is it possible to have Drupal automatically resize an image when the user uploads the file? For example, they ...
quantumized's user avatar
  • 1,329
2 votes
1 answer
103 views

Why is my JSON Response marked as uncacheable?

I've got a custom controller returning a Json Response: class TopicContentController extends ControllerBase { /* initialization and stuff omitted */ public function getTopicContent() { /* ...
Menno van den Heuvel's user avatar
0 votes
0 answers
54 views

Form submit function not called after ajax callabck

Ive created a form: public function buildForm(array $form, FormStateInterface $form_state) { $caldate = new DrupalDateTime(); $caldate = $caldate->format('d M Y'); ...
Brian's user avatar
  • 1
0 votes
0 answers
43 views

Why isn't this giving me a working twig function?

I am trying to create a twig extension (for D11). The extension should allow be to get the value of a url parameter by giving in the 'name' of parameter. I've setup everything, and I'm still getting ...
gmak's user avatar
  • 57
0 votes
1 answer
43 views

Custom block with media images

I created a custom block in Plugin\Block. After selecting a number of media image items with the database, I create html_tags of the images; $html[] = [ '#type' => 'html_tag', ...
PROMES's user avatar
  • 35
2 votes
1 answer
29 views

How do I migrate taxes with order migration?

On the Drupal 7 site, orders have taxes (screenshot from Drupal 7). What do I need to change in the migration file so that after rerunning the migration in Drupal 10, the orders include a taxes line? ...
Alexa's user avatar
  • 31
0 votes
1 answer
11 views

Added phone field to Commerce V2 form but can't format the number entered

I've got a Drupal 10 site with Commerce V2. I have added a telephone number field type to the customer profile type with the machine name of field_phone. I am trying to format the phone number that ...
phpbutcher's user avatar
-1 votes
1 answer
35 views

Decoupled Drupal with NextJs

Can we integrate nextjs in drupal. I have worked on next drupal headless. But I want decoupeled drupal next. I want to integrate nextjs in custom block of drupal like we do with reactjs. In the ...
Nayan Arora's user avatar

15 30 50 per page