Extending Templates in Modules

I have a template in a module. I would like to extend that template. It seems like the usual way to do this is by referencing the directory like this:

{% extends directory ~ '/templates/paragraph--card.html.twig' %}

But the "directory" variable seems to be set to the current theme directory rather than the module directory. So, instead, I have to link directly to the file like this:

How to create content of content type which is a reference to a paragraph?

I want to add a content to content type (ct1) which has only one field (f1) which is a reference to a paragraph (p1), said paragraph has 4 fields: 3 numeric fields (1, 2, 3) and entity reference (er1) to taxonomy vocabulary, also i am supposed to check if term exists and if term exists then add content, otherwise throw a message and do not add content at all.

have anyway to bulid dynamic link?

hi

i want build link dynamilc for contents.

for example node/1 and node/2 and node/3 etc...

now i delete node2...so my app will find "404" and crash.

what i want that if i delete node2,node3 come to node/2 and node4 come to node3...etc

i try "token" and use "[current-page:url:args]"pattern but it have one problem:if i have 5 content and delete number 2, sixth content get node2:(

have any way?

thanks

How does one edit theme colors when not available in settings?

Hello, just did a fresh install of Drupal 8.

Installed a theme, but it does not show color settings in theme configuration.

How do I change the colors?

Custom template for node preview?

I have a twig template with a custom layout for a specific content type. I would like the node preview to use the custom template. There does not seem to be a method for doing this. The template naming conventions do not address preview modes, and none of the file name suggestions in the twig debugging info address my particular content type. Is there a method for doing this?

AJAX + Webform + Button + Latest Drupal Update

Hi all,

First I will completely admit that I am on the AJAX learning curve. A few days ago I updated Drupal from 8.5.4 to 8.5.6. Prior to update I had a working solution. After update I also updated Webform to 8.x-5.0-rc17 to see if this would fix the issue. No luck.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x