This forum is for assistance with theme development.

Views and twig : bug with token values in variables

Hi,

I have some problems with Twig in Views, when comparing two values. Even if two values are the same, they are not considered as such. This is the code I put in Views, section Header, option non-filtered text :

Code example 1

(with value of hello as a string, and compared with another value treated as a string): 

Bootstrap Drupal 8

Hello.

I'm new to Drupal 8 and i have 2 questions.

1) Bootstrap is available on the core on Drupal 8 and that means i don't have to download the bootstrap theme?

2) A solid guide to start develop on Drupal with bootstrap.

Thank you!

Drupal seems to at times change the ID on form elements

Hi all. I've just noticed something for the first time today. In some content that was in draft mode and not published, I pulled a CSS selector of a button to use in the theme CSS.

Normally the selector would be of this form:

#edit-submitted-cv-upload-button

But when I put it in the CSS I noticed that it had '--2' appended to the end, like this:

#edit-submitted-cv-upload-button--2

Then when the page was published the selector was, as expected, #edit-submitted-cv-upload-button, but as also expected now the CSS was broken.

Replacing images in strips

Is there a way to replace images in a strip in Drupal 7? This functionality does not seem to be working at the moment. 

Problem with absolute and relative path for <img>

I have a custom page.html.twig file for my theme. I use some <img> elements in it.
While in localhost on my computer {{base_path}}/themes/images/x.jpg works fine and create absolute url of it, but when uploaded to my hosting only /themes/images/x.jpg is shown as image url. I have tried to replace {{base_path}} with mysite.com (use mysite instead of real url) but it still shows the same result. I have tried in other browsers with the same result... 
Cleared the cache several times too...
Do anyone have suggestions how to fix that?

Thanks in advance

Bootstrap Carousel

Hi all, total newbie here.
Trying to create a bootstrap carousel using view here but hitting problems
Drupal version: 8.5.6
Bootstrap 3

Tried following the video tutorial as below:
https://www.youtube.com/watch?v=WsLA7n9fknc

The carousel is showing as 3 pictures staked on top of each other.

Pages

Subscribe with RSS Subscribe to RSS - Theme development