I'm trying to attach a library to a twig template that is overriding a module template using the following function:
{{ attach_library('mytheme/my-library') }}
The attach isn't happening though. If I add the same attach_library function to my page.html.twig file, it attaches without issue, so I know my library is setup properly. I've also confirmed that my template override is working properly (it's changing the output of the module).
Is there something special I need to do to attach a library to a template file that is overriding a module template?
I have defined a rule path path = node / 110 in the ThemeKey module, I have cleared the cache but it does not work.
At the same time I get the notice "garland is configured as administration theme at admin / appearance. This setting is more powerful than a corresponding ThemeKey rule.
As configured at admin / appearance, adding or editing a node will use the administration theme, garland.
Missatge d'estat "
I create 3 different custom forms by Administration > Structure > Contact forms area and need to call them in specific template but most of tutorials mentioned to create form programmatically by creating module or modify theme.inc. Is there any way to create a form in Admin panel then call it in twig file like {{ form.<custom_form_machine_name> }} ?
I choose the field format "Image with caption" on the "Manage display" tab for an image field, but I cannot see it when I edit the content type with the image field...What could I am doing wrong?
I'm only start to learn Drupal and i have a problem with configuring blocks. I want to hide some block on some pages but when I open page with block configuration there isn't tabs Content types and Pages in visibility settings. Can you tell me why? Drupal version 8.9.3