This forum is for assistance with theme development.

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.

Debating if I need a base theme (html5, pattern lab, Panels)

I've been working for a while on developing a theme that would work well with Phase2's Pattern Lab Starter (PLS) (https://github.com/phase2/pattern-lab-starter) in the sense that it would use the PLS' tool set and task running scripts to develop a single shared css file for both Drupal and Pattern Lab.

Initially I settled on the Boron theme for my base theme which applied HTML5 elements to the site but had such a slim CSS file that it could easily be replaced with the one produced by PLS.

Pages

Subscribe with RSS Subscribe to RSS - Theme development