Adding an image in a news by code
Hi,
I'm working on a script for importing wordpress posts to contao. I have the URL of the post image on wordpress (like http://www.domain.com/wp-content/upl...5/my-image.jpg), and I copied all /uploads/ file tree into /files/ in Contao.
Now here is the request. Cycling on all wp posts I do an INSERT INTO tl_news. How can I set the image in this query? I see singleSRC but I don't understand what contains. Looking on other news in the db i can't find any path of images.
I don't want to upload the images but using these already present in /files/uploads/.
Thank you for your help!
Davide