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:
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.
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?
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.