Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Is there an easy way to add an "new" icon in menus? I'd like to show which photogalleries that are new for visitors. And perhaps also in the normal feed, perhaps like "updated" or something similar. I've looked in modules and other places, but haven't found anything that seems to make this happen.
Drupal 8 uses the Twig templating engine
Drupal 7 uses a different templating engine.
There are many templating engines and handful of examples include
C# - razer, java - Thymeleaf, nodeJS - Jazz
I understand the need for these in languages other than PHP - the only other way to get the output of back end code into the front end page is if the WHOLE front end page is dynamically generated, without a templating engine ether the whole page is dynamically generated or nothing is.
I'm trying to remove a region wrapper from a block. Can anyone point me in the right direction to figure out where this gets generated and how to remove it? Essentially my block is generating a
wrapper and I am trying to remove it. It does not seem to be controlled by any template file.
I have a Problem with one node type and it's form. I want to alter it with an template file. I already did this with another node type on my drupal site and this worked, but it doesn't work for this second type.
So (as I did for the other node type) I placed this hook in my module:
I tried Drupal 8, i created a module called 'book' located in sites/all/modules/book and i created a controller, form... without problem.
But when i tried to use https://www.drupal.org/docs/8/creating-custom-modules/theming, i created book.module file, i followed the documentation but my template is not rendered. Moreover it seems that my book.module is not working because i put a die('dead !'); inside and nothing appear, i got the page without template.
I tried to install a drupal theme from durpal.org and I recieved an error message after it was installed. Now I can't get onto my site or change the themes becuse this erro message appears everywhere. PLEASE HELP ASAP