This forum is for less technical discussions about the Drupal project, not for support questions.

How to add an icon before the text ?

In the Drupal Commerce purchase funnel, there are images for each step of the order.

I would like to replace the images with SVGs.

Here is the CSS :

How to copy / paste in HTML ?

I have a site with Drupal 8 and I want to do a "copy" text with a button in TWIG.

How can I do this ?

I need to make a copy to two different place on the same page :

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 :

Website Style Guide

If anyone has a sample website style guide they'd be willing to post or send me that would be appreciated.  scott.render@louisvilleky.gov  We are working to create one as an addition to a branding guide we've been using.  Thanks.

Scott

Custom file field with web service

I am using drupal 8.9.10
I have a content type with several text field, and a file field too.

My problem is: 
- I have to call an external web service. 
- This web service receives a file and returns it with a verification code.
- I have to add this file to the file field
 and finally save all the content

I am a beginner in drupal, I have been looking at tutorial to create custom modules and I don't know how to develope this. 

I don't know if it is necessary to create a module or create a custom field

How do I make the current user's entities on the home page ?

I am using the following code in the templates of the home page of my site, to make the display mode frontpage_tasks for the current user's account. It works perfectly :

{{ drupal_entity('user', user.id, 'frontpage_tasks') }}

I want to make the same display mode for the current user's stores and groups. I tried the code below but it doesn't work :

{{ drupal_entity('commerce_store', user.id, 'frontpage_tasks') }}

and

Pages

Subscribe with RSS Subscribe to RSS - General discussion