This forum is for assistance with theme development.

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

Drupal 8 preprocess views_view_unformatted__themename

I am trying to access the field content for a view. I have been using dump, kint with varying degrees of success. I have to quit the browser each time I try something new and clear the cache. (I have correctly setup debugging in my settings etc files.
I am coming from a very strong procedural drupal background. I have studies OOP, Symfony but I am just not connecting the dots.
I have function themename_preprocess_views_view_unformatted(&$variables) {
$variables[??????????????]
}

Pages

Subscribe with RSS Subscribe to RSS - Theme development