User email verification by programming

I am using Email verification module https://www.drupal.org/project/user_email_verification but I want to triggered the verification email along with verification link programming  i have some User Id's to whom i want to specific send them notification with custom email template. Please guide me how can i use this community module functionality in my custom module

thanks

Drupal Webform + Salesforce Mapping - one mapping for all forms?

In our instance of drupal, we currently create a new salesforce mapping for every single webform we create and add a webform element to be mapped for every field on the form. Is there a way to either:

  • Create 1 general set of mappings that applies to all forms or basic form fields?
  • Map multiple drupal webforms to one salesforce mapping

I haven't seen this as a feature while working in Drupal and I haven't seen an article related to this in my research so far. 

Thank you!

Make Media Library work with private files ?

I set up the private files path in the site file systems settings and in settings.php as

$settings['file_private_path'] = $app_root . '/../private';

Also set the default download method to private. The .htaccess is properly created in the private files path directory.

I thought this would make uploads default to private or at least give an option to upload to the private directory and/or make them not visible to anonymous / public viewer.

How to create comments with REST API

Hi,

After reading a lot of posts, testing with postman several things I still can't figure out
how to use the REST API for creating content and more generally how to use the core REST API.

Where I am until now

I'm just trying to create a simple page as a starting point.

In the header section of POSTMAN :

'Content-Type': 'application/hal+json',
'X-CSRF-Token': 'MYTOKEN FROM /session/token',
'Accept': 'application/hal+json',

In the body section of POSTMAN :

Upating from 8 to 9, composer requirements could not be resolved to an installable set of packages

I've been working on my first Drupal 8 to 9 update and have been slowly whittling away on the issues Composer throws at me but I've gotten stuck on this new set. I'm not sure where to update or make changes to resolve the symfony and core-recommended requirements.

These are the errors:

Any way to import files uploaded by SFTP into Media Library?

I have a video file that is too large to upload via PHP so I am uploading it with SFTP. Once I have it uploaded to the server, is there a way to import it into Media Library without it trying again to upload the file?

I found an old topic about this at https://www.drupal.org/project/media/issues/3033223, but the place it gives to do this  /admin/content/file/import does not exist on my D8 install.

Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x