This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Try number 2 still crapping out. WTF? Not even the drush version will run without throwing exceptions. Why is this so F'ing diff

Nevermind. Thank god for ChatGPT. It fixed it and rewrote the whole thing and it works fine now.

Jesus christ this is absurd.  So I got some actual help from folks on the Reddit Drupal site and I started over.  I now have created a completely green test module use the "drush generate" command. Here is where I am at:

Trying to get started and dying a little bit inside to include a class file in my module

It's been a long time since I've had to write some custom code for a module and the changes in 10 seem to be pretty profound. So here is where I'm at:

beechbooker.routing.yml:

beechbooker.cabincalendar:
  path: '/cabincalendar'
  defaults:
    _controller: '\Drupal\beechbooker\Controller\BeechBookerController::CabinCalendar'
    _title: 'The Cabin Calendar'
  requirements:
    _permission: 'access content'

beechbooker.mdoule:

 

Conditions for block-content within layout-builder

Hi,

I migrated my side from Drupal 7 to drupal 10. In drupal 7 I used panels with  blocks. And build 2 blocks with condition urls' to show the block.

Now in drupal 10 I have a layout for the vocabulary
If I want to show different content in a block by a term, is this possible somehow? Or do I need to add all blocks with condition url's to the lay-out? And then because of the condition in the block, it shows itself like in Drupal 7?

How do I replace hook_field_widget_WIDGET_TYPE_form_alter() ?

Hi everyone. I am trying to create dependency fields in paragraphs. In Drupal 9.2 i can use hook_field_widget_WIDGET_TYPE_form_alter() but in Drupal > 9.2 i am having some problems....

When i use this hook: hook_field_widget_single_element_WIDGET_TYPE_form_alter that in theory replace hook_field_widget_WIDGET_TYPE_form_alter() i can't access to fields in $element['subform']....

Someone had the same problem ?

subform key looks like

Changing the way childs of the first page of a book are showing

Hi.
I'd like the child pages of the first page of a book not showing themself under that first page.

For example, on this page, I don't want the child page being under that first page because I already have a block showing them on the left.

I think I've just something to "cut" in some twig templates but I can manage to find where or what.

A little help would be appreciate.

Best regards.

D

Which folders are 'really required' at run time in production?

When I ran 'tree' command on newly installed drupal 10 code. I see

5426 directories, 19085 files

Are all these folders really required at run time on production site?

Is it possible to omit some folders from production release ... in order to reduce number of files in the hosting account?

Please let me know.

Thanks

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions