How to close the modal menu automatically when I click on an element containing the class form-submit ?

I am with Drupal 8 and Bootstrap 4

I created a modal menu. I want that when I click on an item with the class form-submit the modal menu will automatically close.

Here is the HTML code :

Remove form display of a BaseFieldDefinition

Hello everyone,

Few weeks ago, I created a BaseField during a hook_update, like this :

Database query MAX(id)

Thank you for reading this topic.

I'm trying to run a query using the database api:

https://www.drupal.org/docs/8/api/database-api/dynamic-queries/introduction-to-dynamic-queries

The query is:

$get_key = $this->connection->query("SELECT * FROM tablekeys WHERE id IN ( SELECT MAX(id) FROM tablekeys WHERE key = 'System' GROUP BY ip) ORDER BY id DESC");

The query returns my desired results.

Media upload, get node data of attached node

I have played around with some custom tokens, see code above. I want to document that for https://www.drupal.org/project/filefield_paths 

The problem i have is that i can not get any node data like $nid or the node object of the node the media file is beeing attached to.

It is a node with an entity reference(media) and i wanted to create a custom token using taxonmy terms of that node. But that is impossible if i can not get any node data to process.

Adding for loop in Drupal 8 theming

I would need a small help to get the output by adding the for loop. I have a view which has a image field. And I would like to theme it, I have created two view templates called "views-view-list--image-article.html.twig" and "views-view-fields--image-article.html.twig"

I want to achieve the output in the below format. Here "wrap clearfix" div is repeating and the inner divs "lhs-img" and "rhs-img" are also repeating.

Create Commerce product with image

Hi, I am trying create product with images. All is done but, I cannot connect image with product.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x