I'm using the node import module to create nodes from a flat file. In one of the fields of the flat file I store the URL of a graphic (i.e. site/pics/123.gif). How can I get this URL to be converted to the actual image in the node rather than just displaying the URL?

Comments

prodosh’s picture

Edit the node and use one of the oldest HTML constructs:

<img src="/your-drupal-root/site/pics/123.gif> 
<img src="pics/123.gif> may work as well depending on how you have set your file system path.

If you have many such nodes and want to take care of this during the import, then you will have to write a script to insert the IMG tags.

_______
Anolim: multimedia, community and collaboration solutions

_______
Safe Swiss Cloud: Enterprise grade cloud infrastructure for Drupal B2B solutions and platforms.