ABT Associates

Abt Associates is an engine for social impact, fueled by caring, curiosity and cutting-edge research that moves people from vulnerability to security. Abt works persistently to make life easier for its customers by applying new technologies and rigorous technical solutions to programs that improve lives around the globe. 

Sectors: 
Community
Technology

How to import an online image from a URL into an image field

Hi,

In a content type, I have an image field, that serves as a cover/illustration image for the nodes.
In some cases i use images found online as these cover/illustration images, the way I do it is I download the image to my computer then upload it to drupal.

So I'm looking for a way to import the image to drupal directly using the image's url instead of downloading/uploading it.
Importing an image using the URL works for inline images using IMCE, but i need it for an image field.

Any ideas ?

Thanks

mysite.com/foo <---> mysite.com/index.php/foo problem

mysite.com has been transferred from server A to server B

Server B runs web server nginx/1.20.2, PHP version 7.2.34

mysite.com runs Drupal 8.9.20

When I point the google Chrome browser (Version 105.0.5195.102) I get the home page of mysite.com properly.

When I hover over any of main navigation tabs, I can see links of type mysite.com/index.php/foo. All links work properly.

How to write this code in Drupal 8 ?

Hi Guys,

How can I write this Drupal 7 code to Drupal 8:

return theme('table', $variables);

Thanks in advance.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x