Attach JavaScript and CSS assets when render entity using Web Sockets
Goal: Attach all the necessary JavaScript and CSS files to the page, when a rendered entity is delivered on a Web Socket event. Given: Problem: JavaScript and CSS files, needed for rendering, are not attached on the page. (E.g. scripts for display of an image gallery, lazy-loading of images). My ideas: I think that I should list all the necessary J...
Link an image and add assets
I'm new to drupal, so this might be simple even if I can't find the solution. I have a custom module back_module with folders : From my templates/block-back.html.twig First issue: I want to print an image located in images/back.png I can't find the right url for the image <img src ="???" alt='backButton'/> I already find solutions to retrieve...
Regions. how can I disable a region? (not disabling blocks)
I want to disable a region, to not show blocks in this region to an specific page. I want this because, I have several blocks (more than 20) so in this case is necessary enter to each block, and configure in what page or pages must not be showed. Well I can do that, I just want to know if exist some way to make this task in a more practical way, or...
How to assign blocks to particular regions on theme install?
Drupal 8 provides some blocks by default. Eg. Site Branding, Main Navigation, Powered by Drupal, Search etc. I have created a theme that has Site branding & Main Navigation named regions in which corresponding blocks can be placed. When I enable my theme, Site Branding & Main Navigation blocks are placed in Header & First Sidebar region...