All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Drupal 10: Workflows (core) user assignment [closed]

We have a Drupal 10 site with the core Workflows and content moderation module enabled. The roles are properly configured, and the workflow is working as expected. We configured the workflow to allow ...
devdever's user avatar
0 votes
0 answers
19 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
  • 632
-3 votes
0 answers
16 views

getting paragraph migration error by using yaml files in drupal 9 [closed]

id: migrate_paragraphs label: Migrate Paragraphs migration_group: my_migration_group source: plugin: csv path: 'modules/custom/migrated_content/importfiles/migrate_paragraph.csv' delimiter: &...
Anto George's user avatar
0 votes
0 answers
10 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
  • 438
2 votes
0 answers
15 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
14 views

Connect two different webforms, used by different roles [closed]

Hey guys i have a challenge on hands that i need to exchange some ideas with you. I have a website where users, with the role company, will fill in an big multistep form that i've built with webform ...
Hivvu's user avatar
  • 1
0 votes
0 answers
20 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
2 votes
0 answers
19 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
42 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
21 views

Drush hangs on any command except for "drush version"

My question is what I need to do to fix drush on my dev machine. The server was running Drupal 10 just fine before this issue happened. I'm not using the memcache module. I used composer to install/...
Guybrush Threepwood's user avatar
0 votes
0 answers
22 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
9 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
10 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
32 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
-2 votes
0 answers
24 views

Encountering an error while establishing MySQL connection with SSL on a Drupal 8 server running on RHEL [closed]

I'm getting this error "Drupal\Core\Database\DatabaseAccessDeniedException: SQLSTATE[HY000] [1045] Access denied for user 'dbuser'@'localhost' (using password: YES)
TEJA YT's user avatar
1 vote
0 answers
8 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
-1 votes
0 answers
16 views

SELinux problem [closed]

Fedora 39 / drupal 10.2 / php 8.2.17 In Fedora 39 server Cockpit I get this message: I don't understand, is this a permissions error or is SELinux preventing unauthorized access? "SELinux is ...
Mihail Novak's user avatar
0 votes
0 answers
8 views

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

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
38 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
32 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
-3 votes
0 answers
25 views

How to combine statistics sorting with random sorting in a view?

I have a view with statistics (descending) sorting and it's quite static. I want to give it a bit of randomness to make it a bit less static. How to do that?
aji's user avatar
  • 21
0 votes
1 answer
4 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
0 answers
13 views

Prevent text selection for embedded PDF [closed]

I have in a twig file with this line of code : <object type="application/pdf" data="{{content.field_media_file.0}}#toolbar=0" class="h-[700px] m-auto w-full">{{ ...
Pedro's user avatar
  • 51
0 votes
0 answers
14 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
7 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,453
0 votes
0 answers
11 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
25 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
43 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
31 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
  • 893
0 votes
0 answers
64 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
-2 votes
0 answers
17 views

Export hs_ blocks of a certain theme (winns)

Good morning, I have a Drupal installation in which I have activated the Winns theme. This topic uses some types of blocks that begin with hs_ but when using the Single Content Sync module, it tells ...
Daniel Martín González's user avatar
0 votes
0 answers
12 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
0 answers
33 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
-4 votes
0 answers
26 views

Sidebar accordion menu [closed]

I want to turn a Drupal menu with a many links and sub links into a left sidebar accordion menu. An example is on the OPM website here in the left sidebar. There currently isn't a module that can add ...
paul cappucci's user avatar
-5 votes
0 answers
19 views

How to access a webform outside sso? [closed]

I'm trying to access a webform outside the SSO boundary without using SSO credentials. Need help with it.
Purushothaman K's user avatar
-1 votes
1 answer
19 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
55 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
17 views

Display only the last four digits of a Telephone Number Field in Views [closed]

IT just replaced all the old phones at the school where I work. The new phones have different extension numbers. The new extensions are the last four digits of the phone number. So phone number 555-...
David Anderson's user avatar
0 votes
0 answers
26 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
-2 votes
0 answers
23 views

localhost site not found after discontinued installation of hestiacp [closed]

Because of some Drupal file upload size errors, I was looking around and found Hestia CP. I started to install hestiacp using bash hst-install.sh --multiphp yes --postgresql yes --quota yes --force ...
s-135's user avatar
  • 5
0 votes
0 answers
44 views

Ddev start command not working [closed]

I usually when I finish working for the day use ddev poweroff on my projects and the next day I use ddev start to continue workin. Today when I wanted to do my ddev start I get this error and I cannot ...
Chris Costa's user avatar
0 votes
0 answers
22 views

How can I create a view of paragraphs based on a node field? [closed]

In my Drupal 10 site I have a content type "Bar" with a field field_foobar which is of type Entity reference revisions with Reference type: Paragraph. Now, I want to create a block placed on ...
Argyro Kazaki's user avatar
-2 votes
0 answers
33 views

How can I hide a field of paragraph type?

I want to hide some fields of paragraph type. I made it hidden and visually hidden, but it still appears on the page. Does anyone have a solution for that?
Mohamed Ouhammou's user avatar
0 votes
0 answers
13 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
  • 268
1 vote
0 answers
44 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
  • 235
2 votes
1 answer
46 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
21 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
48 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,642
0 votes
0 answers
36 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
37 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

15 30 50 per page
1
2 3 4 5
1755