This forum is for assistance with theme development.

twig tweak...Solved - altered core/core.services.yml

Hi All,

I have been banging my head against a wall for 2 days trying to solve this. 

I have a local apache lamp stack using PHP 7.4.3 with apache and virtual hosting turned on.

The site that I am trying to turn twig tweak on with is a Drupal 8.9.13 site.  Its essentially a migration from Drupal 7 which I am trying to upgrade to D8.  I have gone about the usual things: 

Dynamic nid for drupal_field twig tweak function

I have a field_slides paragraph field on my home page, on drupal 9.1.3. It is for rendering a carousel. I want to iterate over the elements of the paragraph field (eg the slides with title, description and button fields). I'm using drupal_field twig tweak function for the sake of translability. I have tried something like the following :

how to use hook_render_template()

Hello everyone,

I have created a module, i need use this hook 

but it doesn't seem to work

how to build a website like umami ?

Drupal is great !  

but it is hard to learn ,

Is there any tutorial show how to build a website likes umami step by step ?

this is great help the newbie likes me to master drupal 8

Any suggestion is appreciate !

Thanks !

 

Error Message

Hi Forum

We are getting an error message when trying to create our own theme.

Please assist if possible.

The error message is below:

Error message

Warning: Invalid argument supplied for foreach() in Drupal\Core\Extension\ThemeHandler->addTheme() (line 125 of core/lib/Drupal/Core/Extension/ThemeHandler.php).

Execute SVG inline JavaScript in node

Dear Knowings,

I'd like to integrate a SVG-Image with inline Javascript to a node. The image is a map. When I hover a region of it, an explaining picture is shown. When I leave the region, the picture is unvisible. Therefor I need the script. It's generated in Inkscape with the function "plugins|internet|javascript|add attribute".

It's not the problem to insert the SVG with <svg> tag. I manged it with the module "svg image". So I am able to create a media SVG and insert it in the node as media. But the script-code is commented out. How can I prevent that?

Pages

Subscribe with RSS Subscribe to RSS - Theme development