This forum is for assistance with theme development.

How to print the group ID in TWIG ?

I installed the Group module on Drupal 8 :

https://www.drupal.org/project/group

If I add the code {{ group.id }} in the TWIG of the group, it does not display the ID.

How to print the group ID in TWIG ?

Barrio Bootstrap wrong path

Hello! I use the Barrio Bootstrap  SASS Subtheme. I got an error, cause www.xyz.com/libraries/bootstrap/js/bootstrap.js?pzftt0 is wrong. The library directory is in sites. Whère can I fiix this?

How to Call Image from a Page or Product into Javascript

Hi, I am new to Drupal and decided to kind of jump in the deep end. I am developing a kind of portfolio site for myself using Threejs.

I am trying to call my featured image from a product, page, or post as well as the url to the page its located on, into javacript.

If someone could please point me in the right direction, that would be great. Thank you.

Regions not showing in block regions demonstration section.

I'm trying to add more regions to a sub theme (barrio).

I have added the region to the theme.info.yml region section 

regions:
  main_header: 'Main header'

in the _page.html.twig file I added:

        {% if page.main_header %}
        <div class="container-fluid">
          <div class="row">
            {{ page.main_header }}
          </div>
        </div>
        {% endif %}

The region is appearing on the structure/block page. 

Import configuration file

 

Hello.

I am currently making a theme for drupal 8. I would like when someone installs my theme, to automatically install the content types and data that is required to run the theme properly. For example, my main slider relies on a certain content type and data to run. I need when my theme is installing to install those as well.

So mostly I need to know how to run drupal console commands upon theme installation so that I can import with configuration management.

Theme like Box_Grey (..from Drupal 6)

Hello,

Does anyone know of a Drupal 8 theme, like Box_grey from Drupal 6 (..using boxed side navigation bars)?  Thanks.

Chris

Pages

Subscribe with RSS Subscribe to RSS - Theme development