This forum is for assistance with theme development.

Port custom theme From Drupal 7 to Drupal 8.

Help needed for converting a custom theme from D7 to D8.

I tried to port my custom theme but it didn't work.

Could you please port my custom theme for me?

The template is of a non profit musicband.....

custom a field with multiple values

Hi,

I have a field with multiple taxonomy terms (tags) and I want to add a span for each tag. 

But in the template views-views-field.html.twig, there is only :

{{ output -}} 

It's the output of all tags and not one by one. 

How can I custom each tag ?

Thank you.

Override a view button - no file name suggestion

Hello

I have an exposed field with a button that I want to override.

I tried to override with input-button--submit.html.twig but it affects all buttons of my website. I only want to override the button of my view.

Anyone can tell me how to override a view button ?

Thank you.

Custom Template - Use Existing Field Content

I am trying to include a custom template in a MODULE.

This tutorial is helpful getting started...

https://www.drupal.org/docs/8/theming/twig/create-custom-twig-templates-...

But it only shows you how to create a random variable in the controller. When I try to create a template for a custom node type in my module, it can't access the {{ content }} at all. How do I pass {{ content }} into the custom template?

Extending Templates in Modules

I have a template in a module. I would like to extend that template. It seems like the usual way to do this is by referencing the directory like this:

{% extends directory ~ '/templates/paragraph--card.html.twig' %}

But the "directory" variable seems to be set to the current theme directory rather than the module directory. So, instead, I have to link directly to the file like this:

Custom template for node preview?

I have a twig template with a custom layout for a specific content type. I would like the node preview to use the custom template. There does not seem to be a method for doing this. The template naming conventions do not address preview modes, and none of the file name suggestions in the twig debugging info address my particular content type. Is there a method for doing this?

Pages

Subscribe with RSS Subscribe to RSS - Theme development