This forum is for assistance with theme development.

Print individual fields from Node Reference field in node template - Drupal 7

I've done a lot of googling and can't figure out how to do this.

I have a content type, Course, which uses a node reference field to pull in another content type, Faculty. We are using custom node templates for each of these content types.

Translate static content

In my site there are lot of static content such as section headers and random content. I want to translate them.

Can I translate with them {% trans %}my content{% endtrans %} in twig?

If yes, where to insert the translations in the backend?

Question about business theme

Hello.I am using the business theme https://www.drupal.org/project/business for a client.The problem with that isn't responsive.Firstly, my client didn't care if the theme is mobile-friendly but now he does :p. So the question of my client is: Is there a module or something that converts the specific theme to responsive? Or I have to do it with css etc? He probably asks this to save some money instead of paying more to make his site responsive :p

Thanks.

Paragraphs Form output

In trying to print out a title and a description above my form, but the tilte is being renderet after the form??

Field title required error with child theme

Hey folks,

I recently took over the maintenance for a Drupal site that was originally launched by someone else. I'm running Drupal 7 and the person who originally set up the site directly modified the Bartik theme for some of our views, nodes, and pages. The site functions the way we want it to with those changes, and I'm just trying to update the look and feel.

So to keep things running as smoothly as possible, I created a child theme of Bartik. I've just about finished upgrading look and feel, and a user reported that they couldn't add content.

Render Node Fields and Labels in view Template - Drupal 8

It is working solution for node template in directory theme-themesABC-template-node
<a href="{{file_url(node.field_attachment1.entity.uri.value) }}" ><h3>Download</h3></a>

1) It is strange when I create new views(block) in drupal 8, its name which i can't change ex-it come like block_1 block_2 etc. automatic alpha-bates?

2)After creating views (block) xyz and associated twig file in directory theme-themesABC-template-views views-view-fields--block-xyz.html.twig

Pages

Subscribe with RSS Subscribe to RSS - Theme development