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):
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.
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?