Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Hi... I need a help with Drupal 8 templates, please.
I created a custom block, I can create a theme for the custom block (the instance), but I can't create a theme for the Custom Block TYPE (let's call it "the prototype").
I meant, is there a way to theming the different Custom Block Types?
And a "bonus question": Why in the Theme Debug I can see "block--block-content.html.twig" twice? Should I see one "block--block-content.html.twig" and one "block--CUSTOM-BLOCK-TYPE-content.html.twig"
I have created a form with two fields in which one is a radio button field and another is a hidden field which has #prefix and #suffix to define a custom "DIV".
Based on the radio button selection I am able to append data to the custom "DIV" using ajax calls. In addition to that I also want the "DIV" to have its own default value predefined. How can I do that ?
We are currently working on our first Drupal site ever. We are almost ready to go in production, but we are facing a small but annoying problem. It seems like the breadcrumb is cached and I don't know how to avoid this.
The problem:
If you browse between the pages from the left-navigation, the breadcrumb isn't changing anymore after the first click. But if you click on page the is a level deeper, then it changes again.
i have been looking for a way to remove image field attributes in drupal 8 site-wide. I tried using some preprocess functions in themename.theme file using below samples.