This forum is for assistance with theme development.

Print a twig variable without the debug options

Hi everyone,

i have a taxonomy in my content type which is like "A" "B" "C" or "D"

when i want compare it in my twig template to check if it is equal to A B C or D it always return false, so i tried print is as :

<span class="note note{{ fields.field_classe_energetique.content }}">

so i can change background color depending on the note, but same its not working because it is not only printing A B C or D but also all the theme hook, suggestions etc from Devel, is there a way to not print that only for this variable ?

Zircon_d8 distribution installation problem

i have installed zircon_d8 drupal distribution in my website. only layout is visible now. slider,header and footer and our partner link panels are also not working, how to do i solve this problem?

Theme not uploaded in Drupal8

Dear sir,

We have the problem that the theme is not uploaded in the Drupal8

How can I override output for subscription field (Simplenews) in form user/register?

Hi,
I have subscription field (module Simplenews) in user registration form (user/register). It is simple field - only one checkbox.
For now, it look like

<label class="control-label" for="edit-newsletters-40">
<input id="edit-newsletters-40" name="newsletters[40]" value="40" checked="checked" class="form-checkbox" type="checkbox">newsletter </label>

But I need

Render Content Labels and Values

In my node--content_type.html.twig template file, I can output both the label AND value of a field by using:

{{ content.field_title }}
I can also render just the label of a field with:

{{ content.field_title['#title'] }}
So far, so good.

However, how can I output only the VALUE of a field using the content array? I've tried:

{{ content.field_title['#value'] }}
And:

{{ content.field_title.value }}
To no avail.

Thank you for any help.

Search Files and Documents

Hey all,

I'm trying to figure out how to create a search bar that only searches for files such as .doc, .pdf, .ppt and so on. I also need it to search for forms on the site. Does anyone know of any sort of module that can achieve this? If more information is needed please let me know.

Thanks

Pages

Subscribe with RSS Subscribe to RSS - Theme development