All Questions

Filter by
Sorted by
Tagged with
-2 votes
1 answer
38 views

Migrate Markdown files to Content type [closed]

I am working on a migrating Markdown files from a repo into my Drupal site and not sure if this is possible. I have created a new content type that is just the title field and the body that accepts ...
ThankYouNeco's user avatar
0 votes
0 answers
21 views

How can I retrieve the variation ID of the product displayed?

When we display a product with a variation, we have the id of the variation as a parameter in url like this : /product/587?v=4951 587 = product id 4951 = product variation id How to retrieve this ...
Sébastien Gicquel's user avatar
0 votes
0 answers
20 views

Backup Migrate Error: "Could not create a temporary file to write to.", but /tmp folder is already 777 on Ubuntu server

I'm trying to manually backup using backup and migrate module on Drupal 9.4, but I keep getting this error: Could not create a temporary file to write to. I checked with file system page and it says ...
Patoshi パトシ's user avatar
0 votes
1 answer
32 views

How to Create a Database Table When Installing a Custom Drupal Module? [closed]

I've included a mfa.install file along with my module (mfa). After a few iterations my module now installs without errors but my two new tables are not added to the Drupal schema. Why? I uninstalled ...
Donald Winston's user avatar
0 votes
0 answers
62 views

Unable to render HTML in a view

I have a view that includes HTML from a rich text field. Im trying to render the HTML in a twig template but it does not work. Tried {{ output | raw }} also autoescape. Here's how it looks in the ...
Tony Horrocks's user avatar
1 vote
1 answer
40 views

Set admin theme by user

Is it possible to set a different admin theme by user ? I found this old module https://www.drupal.org/project/tbr it's probably possible to convert it to fit the new Drupal 8/10 system (https://www....
Etienne's user avatar
  • 335
2 votes
0 answers
45 views

Automatically trigger Acquia pipelines job when content is updated

My team is fetching a large portion of our site's content at build time by using the i18n Gatsby plugin and downloading content from Drupal. The content we are fetching at build time rarely needs to ...
Amy's user avatar
  • 21
0 votes
1 answer
11 views

Payment Gateways not shown when limited to store

I have Commerce Version: 8.x-2.38 installed with Paypal and Stripe. I'm setting these gateways up just fine, and they work, but when I constrain the gateways to appear only with a store, they do not ...
Michael D. Moradzadeh's user avatar
2 votes
1 answer
63 views

How to prevent custom field being indexed in custom entity?

I'm creating custom entities extending ContentEntityBase but when I review the created table in MySQL, it has created indexes from fields I don't want. This is and excerpt of my custom entity: /** * {...
briast's user avatar
  • 654
0 votes
1 answer
20 views

How can I assign nodes to a group using migrate_source_csv?

I tried breaking things into 2 migrations were the first migration imports nodes from a CSV file and the second migration creates a group relationship. group_content_migration.yml: id: ...
blu's user avatar
  • 448
2 votes
1 answer
31 views

Where could I see a table of the most viewed nodes?

In Drupal 10.2.4 with Statistics core module installed and node view count activated, I want to see a table of the most viewed nodes like this: node 1 | alias (if any) | 601 views node 8 | alias (if ...
aji's user avatar
  • 21
0 votes
0 answers
27 views

Custom Ajax callback is not working within layout builder

I am using custom ajax callback inside an block form using form_alter but ajax functionality is not working within layout builder where as its working as expected while adding from structure -> ...
bisw's user avatar
  • 569
3 votes
1 answer
38 views

How do I write a test for a specific server (nginx) for Drupal.org?

I'm trying to write a test for Only show the error “Public files directory Not fully protected” for Apache servers. This is a bug that only appears if running Drupal on nginx, not Apache. Normally, ...
Patrick Kenny's user avatar
0 votes
1 answer
72 views

I want to insert processing before the FormAPI Core validation

I would like to interleave the processing before the Core validation of the FormAPI. As for the processing flow of FormAPI, buildForm() -> [submit] -> Core Validation-> validateForm() -> ...
Skyyade's user avatar
  • 23
0 votes
0 answers
31 views

"Unrecognized response content type" in Acquia Migration Accelerate

I am trying to run the Acquia Migrate Accelerate tool on a production D7 database. I've got as far as migrating Public Files and each time it stops after about 2000 out of 7000 entries. I also get the ...
Hadden Uff's user avatar
0 votes
0 answers
14 views

How do I call a custom serializer from a _node_update hook?

We inherited a legacy Drupal project that has an entity called Products. We expose an API endpoint that returns all Products as JSON. Our project uses a module that contains a custom serializer: // ...
RobertAKARobin's user avatar
0 votes
1 answer
13 views

CMS Permissions Groupings

I have beeen asked to conduct analysis of the current permissions groups within Drupal CMS of a global insurance company's website. The goal is to understand the existing permissions structure, ...
Kakatee's user avatar
0 votes
1 answer
57 views

How to disable caching of _custom_access callback

My module has several pages which use a custom access callback. The conditions for access may change from call to call so this needs to be checked every time. When I am logged in, the access ...
Kevin Finkenbinder's user avatar
1 vote
0 answers
13 views

Can I output thumbnails instead full images on a webform email confirmation?

I have a form where people can upload images for approval. A confirmation email goes out saying thank you etc with an output of what they have uploaded using this token: [webform_submission:values:...
ChumKui's user avatar
  • 179
0 votes
0 answers
9 views

How can I manipulate an autocomplete text field exposed form filter to be a select list? [duplicate]

I have been trying to just use a form alter hook with code like this if ($form['#id'] == 'views-exposed-form-my-form') { $nids = \Drupal::entityQuery('node') ->accessCheck(FALSE) -&...
Steve's user avatar
  • 351
0 votes
0 answers
56 views

D10 Commerce 2 Update Payment Status with PATCH Call to the REST Ressource dont work : ACCESS DENIED

Drupal 10.2.5 with Commerce 2.8 Under /admin/config/services/rest i activated the Payment REST Ressource. This provides the methods GET, PATCH and DELETE under the following path : /entity/...
Maik's user avatar
  • 1
0 votes
1 answer
38 views

How can I generate multiple pages, each with a unique URL based off of 1 template?

I have a very specific need for Drupal, but not sure if there is a solution and was hoping someone might know of a module or method that might get me going in the right direction? My brother is a ...
Nick's user avatar
  • 1
0 votes
1 answer
5 views

Editing block to update/remove menu items

I am new to Drupal and I'm trying to fix items on a website, which have several blocks containing menu items. I don't want to delete the blocks, I just want to edit them to remove/update the menu ...
Karen Petkau's user avatar
0 votes
1 answer
27 views

Libraries override jquery_ui_accordion

How can i override jquery_ui_accordion? I can't figure out how. libraries-override: # Does not work? jquery_ui_accordion/accordion: css: component: assets/vendor/...
mgoubert's user avatar
  • 365
0 votes
0 answers
13 views

Ajax Views DOM ID generation to fix Media Library Ajax View Exposed Form behaviours not getting rebound

I have a view with an exposed form with ajax enabled (is is media_library) I click apply filters. An ajax request is triggered and ViewAjaxController->ajaxView() runs. This method has a comment ...
Felix Eve's user avatar
  • 6,463
0 votes
0 answers
17 views

Bibcite references from migration shows HTML tags in abstracts and notes, how to strip them?

After a migration using the bibcite_migrate module, I retrieved my 2700+ references from a D7 site and the Bibliography module. Unfortunately, HTML tags are visible on all abstracts and notes and they ...
Toki's user avatar
  • 424
0 votes
0 answers
38 views

Configuring Drupal 10 Multisite on a Single Domain

I'm encountering an issue with my Drupal 10 multisite setup. The requirement is to host all instances of the site on one domain, but with different URL prefixes: site.com/ua site.com/fr site.com/uk My ...
Илья Степаненко's user avatar
0 votes
1 answer
46 views

Can't pass variables from a controller to the template if I use base hook to override the theme template

I've created a custom route that uses a controller to use a custom template. If I don't mess with base hook my template is rendered somewhere inside page.html.twig as a block and all the variables are ...
Andrei's user avatar
  • 15
0 votes
0 answers
40 views

What is the valid value for Webform element type in form-element.html.twig?

I'm currently attempting to rewrite the form-element.html.twig to incorporate custom CSS based on the label display and field type for Webform element output. While I've successfully identified ...
CocoSkin's user avatar
  • 891
1 vote
0 answers
78 views

Does anyone have suggestions or recommendations on how to integrate CKEditor 5 Full page HTML plugin successfully into a Drupal website?

I am exploring ways to implement the Full Page HTML feature of CKEditor 5 in Drupal. Does anyone have suggestions or recommendations on how to integrate this feature successfully into a Drupal website?...
aiqntsrgulla's user avatar
0 votes
0 answers
13 views

Brightcove media entity is rendering only as thumbnail

I'm trying to use Brightcove videos as media entities, like I do with YouTube embedded videos. I want the media type to just have a video url field to put the "Publish and Embed" url for the ...
Eric Sorum's user avatar
-1 votes
1 answer
49 views

How do I change hostname after installing?

I am a silly goose. I did something stupid and updated apache, php, and mysql before i had a chance to upgrade drupal, when I an much older versions. I had been updating my server and now the newer ...
Jon Weinraub's user avatar
-1 votes
1 answer
20 views

Entity Checkboxes: How to have one value displayed in form but another value in preview and submission?

I want to use Entity Checkboxes (referens to a node type) to display the Title from nodes as checkboxes in the form but to display another field from the node (my_text) in submission. Tried to use ...
Hans Gustavsson's user avatar
0 votes
1 answer
66 views

Which is the correct way to create redirects from existing nodes

I was discussing with a friend who usually makes different redirects on his site. Having an existing and published Node he creates a new Node of the same Content Type and creates a redirect from the ...
Adrian Cid Almaguer's user avatar
0 votes
0 answers
30 views

How do I display the total number of items in a view?

I have a website that works with Drupal 10.2.5 I have 200 articles published. I created a views block with the last 5 articles. I therefore limit the number of elements to 5. I want to display in the ...
marsouin's user avatar
0 votes
0 answers
26 views

How to wrap CKEditor 5 editor in a custom div?

Migration from CKEditor 4 page, under the BodyClass section, states I can wrap the editor in my own div. "Simply wrap the editor with a <div class="...">", but, how? In ...
John's user avatar
  • 293
2 votes
1 answer
101 views

How can I modify CKEditor 5's CSS variables?

Although Drupal is designed to be styled using css files and configuration in the *.libraries.yml files, the CKEditor 5 module defines some styles in a Java Script file which: Is included at the end ...
Tom's user avatar
  • 247
2 votes
1 answer
52 views

Custom theme throws “Undefined constant "CSS_STYLE" in constant”

I just built a custom theme for Drupal 10. When enabling it via /admin/appearance, the dreaded message “The website encountered an unexpected error. Try again later.“ appears. drush watchdog:show says:...
Wolfgang Schardt's user avatar
0 votes
1 answer
26 views

Creating a file type of epub in commerce

I want to give customers the option of downloading an epub file or a pdf in Drupal Commerce 2. Drupal 10. In admin/structure/media types/document/manage fields I added the document file type epub. ...
Bessaston's user avatar
1 vote
1 answer
54 views

How to generate content based on data in nested child render elements?

Motivation I am trying to build a "table of contents" / "In-page navigation" block, that should extract labels and ids from block render elements within a theme region. E.g. a ...
donquixote's user avatar
  • 3,652
0 votes
0 answers
40 views

Is there any way to set preprocess as False for a particular page?

The JS aggregation is activated. After a while, the linked javascript file on just one page experiences the page not found issue. This prevents the website from loading correctly. Is there a way ...
Tejas Damre's user avatar
0 votes
0 answers
38 views

Can't make my custom dynamic route use custom controller and twig template if I use pathauto aliases

I'm trying to decouple drupal and get data via api calls so that I can use the same data across several drupal installs on different domains. So far I'm testing on the same domain but still can't ...
Andrei's user avatar
  • 15
0 votes
0 answers
41 views

How to update Open Social to 12.3.2 and core to 10.2.x?

I am stuck on how to update Drupal to 10.2.x and Open Social (goalgorilla/open_social) to the latest compatible version (12.3.2 or 12.2.4) using composer. I've looked at the open social docs on how to ...
Jono's user avatar
  • 125
0 votes
1 answer
22 views

IMCE button in the URL tool

Months ago, I somehow enabled the IMCE button to appear when adding an URL using CKEditor 5 on Drupal 9. The problem is that I totally forgot how I enabled that. I already checked CKEditor5's ...
julianx2rl's user avatar
0 votes
1 answer
29 views

Column not found: 1054 Unknown column after creating new field

Background I attempted to add a new field "Audience" which is an entity reference field referencing an "Audience" taxonomy. After creating this, I attempted to edit it to allow the ...
GeorgeCiesinski's user avatar
0 votes
0 answers
28 views

How can I switch between databases in a multisite environment using the entity API?

I'm working in a multisite environment and need to switch between databases based on certain conditions. I successfully switched the active database connection using Database::setActiveConnection() in ...
Marwen Amri's user avatar
0 votes
0 answers
39 views

Use the Node Export module to export nodes with images

My team and I want to use the Node Export Module to export and import nodes that include image fields between environments of our Drupal 10 site. However, when I export nodes, the image fields only ...
Amy's user avatar
  • 21
0 votes
0 answers
23 views

Inline Entity Form - how to set form field value in custom validate function

I have been struggling with this problem for few hours and I am unable to set form field values in a custom validate handler for an Inline Entity Form. Inside _inline_entity_form_entity_form_alter ...
a_negi's user avatar
  • 1
0 votes
0 answers
6 views

Deactivate "tabledrag", another item, order for comments

I need a very simple forum function for my site and I am currently trying out the forum module in Drupal Core. My Drupal is version 10.1.8. But now there are the buttons "preview" and "...
Bavramor's user avatar
0 votes
0 answers
12 views

Show the value of users selected results from views exposed filter

I would like to show the value of a user-selected option similar to this question I found here: Views exposed filters - how to show "You searched for [exposed filters]" above results? Their ...
user3038672's user avatar

15 30 50 per page