This forum is for assistance with theme development.

Create a custom .twig template for "pending admin approval" and "welcome" mail after the registration

Hello everybody,

i use Drupal 9 with Mailsystem Module & SMTP Module

i want to customize the Mail-Templates after the registration, but i don't find nothing about the file-name-suggestion and fields to set in the template, how can i customize this email-templates with my custom html/css code?

Thanks in advance!

Theming of unpublished content

I am using an adaptivetheme which renders unpublished nodes using an unpublished class. I am a novice at Drupal theming, and am trying to reuse the theming approach in a subtheme (at-doubleq), which colorizes the entire node rendering, and centers the word 'unpublished' at the top of the content. I can use developer tools to confirm that I am in the right place, as the relevant html has:

How do I darken the background when I click the button ?

I have a button on my site, when I click on it, the background should be darkened.

https://ibb.co/NWCpxpj

It works on all pages of the site :

https://dev.s1biose.com/fr/produit

But it doesn't work on the homepage :

https://dev.s1biose.com/fr

How to make it work on all pages ? Here are my files :

style.css :

Use Styles/Scripts/Templates from two "sibling" themes

I am working on a site redesign project. For some timeframe, we need to use two different themes, the current one and the redesign. I am using the theme switcher module to show both themes on production at the same time for their respective pages.

[Solved] Views : get value of another field in views-view-field--field_name.html.twig

Hello

I have a content with two fields :

  • image
  • background image

I have a view which displays the image and get the background color (hidden field).

I want to edit the twig template of the image field to add the background in css inline like below :

views-view-field--field_image.html.twig

<div id="color" style="background-color:#{{ view.field.field_background.original_value }}">
{{ output -}}
</div>

I can't succeed to get the background field.

Entity Reference Field show only un-used values/items in dropdown?

Hi,

I have two content types (PPL Fields & Production), I have created a Entity Reference Field(using Entity Reference View to get filtered list of PPL Fields) in Production.

Pages

Subscribe with RSS Subscribe to RSS - Theme development