This forum is for assistance with theme development.

Theming "Custom Block Types"

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"

Relationship between node and other nodes related by node reference to same parent

I've been stuck on this all day and I need help.

I have a video node that has a relationship (node reference) with a playlist node.

There are multiple videos referencing that playlist and there are multiple playlists.

Now here is my issue...

Custom div to have default data set using a function in Drupal 8

Hello,

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 ?

Form code is as follows :

How to avoid the Breadcrumb from being cached?

Hi everybody,

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.

How to add fields dynamically in custom form in Drupal 8 ?

Hello,

I have been trying to add couple of fields dynamically in a custom form in Drupal 8 but din't have luck till now. Could anyone please help me out !

The following is the ways I have tried with no luck

How to remove image attributes in drupal 8 ?

Hi,

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.

Pages

Subscribe with RSS Subscribe to RSS - Theme development