This forum is for assistance with theme development.

D8 - Show a sidebar with differents filters checkbox

When displaying a view of teaser i would like to also show a sidebar with some filters so we can filter the display by checking or unchecking the checkbox in front of the filters. Should i use taxonomies for that ? Or the filter option in view is different ? Can you just tell me where to look for the best practice ? :)

Thank you.

D8 - Test checkbox if checked in twig template

Hi everyone, i do have a form associated to my content type, i added a checkbox in this form so when i add an entry i can check the checkbox if i want display a certain image on my template or not. How do i do the test like

{% if content.field_myCheckbox is checked}

Only local images are allowed.

{% endif %}

Thanks in advance :)

debugging twig

From the Drupal 8 docs: "You enable Twig Debugging in sites/default/services.yml.
(If services.yml does not yet exist; copy default.services.yml and rename it to services.yml.)"

I don't have a service.yml only a default.services.yml

Why is this file set to read only if I need to copy it? Is it safe to change it to read and write?

How to add CSS/JS? Preprocess&template.php, .info not working

Hi

I'm using Bootstrap subtheme and I'm trying to add custom CSS and JS.

I've tried to add them via
template.php

function bootstrap_subtheme_preprocess_html(&$variables) {
  $path = drupal_get_path('theme', 'bootstrap_subtheme');
  drupal_add_css($path.'/css/fp.css');
  drupal_add_js($path.'/js/fp.js');
}

.info

Duda sobre menú fijo en scroll

Hola a todos/as.

Os escribo el siguiente post, pues he trabajado poco con drupal y la verdad
es que por más información que busco internet, cada vez me encuentro más perdido,
a ver si por casualidad alguien se ha topado antes con mi dilema y sabe echarme una mano.

El caso es el siguiente. Estoy retocando el diseño de una web que me han pasado y ya tiene
creado un menu que enlaza con 5 págias de contenido. El dilema es el siguiente:

Configure a block with views

Hello!

I'm developing a site and need your help! There is a lot of content to be put onto one page and to make it simpler to read i was thinking of creating drop down blocks with content that appears only when you click on the tab.

Pages

Subscribe with RSS Subscribe to RSS - Theme development