Colons in class names are stripped, but only when the page is loaded through a controller/custom route

Hello,

Having an odd issue where colons in the a CSS class name are being stripped but only when the page is loaded through a controller/view builder.

I have applied this patch https://www.drupal.org/project/drupal/issues/3050007

Which allows me to put classes with colons through the Drupal Manage Display menu, and the classes display properly when the default page is loaded.

After migrate 7 to 8 Drupal taking too much time for loading

We have migrated Drupal 7 to 8 but after that drupal is taking too much time to load. on every page 1000+ query executed please check the below link for screenshot. 

I'm using Drupal version 8.8.1 

any suggestions for optimization?

https://i.imgur.com/63t9QrT.png

creating file on s3 bucket using custom code in Drupal 8 using s3fs module how to add metadata on file e.g content encode : gzip

while creating the file on s3 we have to add metadata on the specific file in drupal 8.
I have configured the s3fs module for uploading files and assets on s3.

How to style for a node

Hi, 

In D7, I was able to apply css for a specific node (i.e. node/7) as 

.page-node-7 h2{color: red;}

In D8, when I inspect the page in chrome, I do not see node ID as I used to see like D7. I see the following in body tag of D8 site.

toolbar-tray-open toolbar-horizontal toolbar-fixed user-logged-in path-node page-node-type-page has-glyphicons

How can I apply css for a specific node in D8?

'Learn More' button to redirect using View Field in URL

I have a Search page created using the embedded filters and views. The page is working perfectly. Part of the results look like below:

https://imgur.com/a/yI1Zqik

How not to cache part of the TWIG code ?

The following code is used to display whether the users are online, absent or offline.

My problem is that the current date "timestamp" is cached, so there is no change in user status unless I manually clear the cache with "drush cr".

How can I fix it ?

user--full.html.twig :

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x