This forum is for assistance with theme development.

Adding a "new" icon in menus

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.

Edit:
I'm running the Aegan theme on my photosite. (fotosbypatrick.com)

Why using themeing engines

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.

But PHP has a feature which most languages dont.

Help removing theme wrapper

Hello,

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.

Thanks for your help!

Drupal 7 - node Form template is not used

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:

Theme and module.module file

Hello,

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.

Fatal error: Call to undefined function

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

Pages

Subscribe with RSS Subscribe to RSS - Theme development