This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Twig creating <br> on its own [fixed/solution]

I have a tempalte file that i render like this

$image_ = [
  '#theme' => 'amazon_detail',
  '#item' => $item,
  '#detail' => $action,
  '#attached' => [
    'library' => [
      'amazon_pa/amazon_pa',
    ],
  ]

];

The problem is that twig is converting my formatting into <br> code

If i press enter to format code taht happens. If i remove all of these linebreaks it works

This twig templatecode

Dependent filter values for search criteria in D8

Hello,

I would like to create a D8 module which will display a list of a given ContentType based on a filter method. Some of the filter elements are dependent on others. For example, talking about cars, if one selects the make Honda, he expects to find within Models <Civic, Jazz, CR-V etc> but not <A1, A2, A3, A4, A6> which corresponds to Audi make.

This is the main point of my question: how to create these dependent filter elements (for example all make and dependent models for cars) ?

Thank you for your advice.

Read Webform Action gives random string

Hi

I have a webform for which I need to get the action url inside a form_alter hook.
The hook is working OK for other things.

I've tried what appears to work elsewhere $url = $form['#action']; but it's giving me this random string!

form_action_p_pvdeGsVG5zNF_XLGPTvYSKCf43t8qZYSwcfZl2uzM

Why would that be?

Drupal commerce 2

Good evening I would like to know if there is any way to add the shipping information to the invoice and to the notification email in Commerce 2

Need D9 module to secure portion of website

Developing a new school site using Drupal 9 and have been asked to secure a portion of the site to login only access.  Since Drupal is not using folder structure, how to secure certain nodes to password only.  Some modules available are not for D9 and not functional.  Idea would be to have a "Faculty Section" password only using our university AD id/passwords to gain access. Any suggestions?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions