This forum is for assistance with theme development.

Contact form with url from page it was sent

Hello, how to create custom contact form "ask about this product", and when email comes, it shows that url, from wich it was sent?

Thank you

How to access paragraph reference field value on taxonomy term page?

Hi, 

In my taxonomy term I have a field called paragraph reference which the field type is Entity reference revisions and is referencing to the paragraphs I have created. On this taxonomy term page I just want to access this field and print the paragraphs. When I use devel I see these values but I have tried almost everything but cannot seem to access the field in page--taxonomy--term.html.twig .  These are the following things that I have tried but getting no result:

{% for item in content.field_paragraph_reference %}

Why does adding this suggestion stop my custom template being detected?

I've made a custom block type and I'm trying to make a template for it that works for all instances of it.  I've added suggestions like this:

How do I open 2 menu when I click on a button ?

On this page there is a "Lancer une recherche" button :

https://i.stack.imgur.com/z0YDV.png

I would like that when I click on it it automatically opens the menu at the top left and also the menu with the magnifying glass icon.

How can I do this ? My site is built with Drupal 8 and Bootstrap 4.

Implement module features though theme

We are working on a website - we want to provide the theme(front-end UI) also want to implement some backend features with theme only. Is it possible ?

Use case: We are building a theme for a Critical Website. We want to create custom content type for our Website project. This can be implemented easily through Module. But we want to implement this only thgouh the theme. 

Is the above scenario possible. 

Along with the above requirement - we are looking for to create(implement) module features only through theme(is it possible). 

How to exclude form fields from a form template

I have built a basic entity in d8 using drupal console. I am then using a hook_form_alter to add some additional front-end fields to the form. These fields aren't functional on the back-end, but do some front-end stuff. 

Either way, I then made a hook_preprocess_form in my theme like this:

lms_preprocess_form(array &$variables) {

$variables['form'] = $variables['element'];

}

and I have a suggestions_form_alter() like this:

Pages

Subscribe with RSS Subscribe to RSS - Theme development