By shaynl on
Hi,
I need to create new content type with cck that include images but I don't want to upload those images to my drupal site (like ImageField). Instead I want to insert an image link from other sites like http://sitename.com/image.jpg and display it in nods and views as an image.
thanks
Comments
How to display image from an image link in nods and views?
Using Link Image Field modules u can add link to the image from other site
Thanks but that's not what
Thanks but that's not what I'm looking for…
I don't want to add link to the image. I want to add an image from a link…
Try This
with full html mode.
Yes it works when I put it in
Yes it works when I put it in the content body…
But is there a module that can take an image url and adds the img code so it will display as an image?
Like ImageField but from an image url…
I havent used this, But Hope
I havent used this, But Hope it will help you http://drupal.org/project/emfield
see also this http://www.youtube.com/watch?v=YsAnxoGsCOI
so you can try it on your testsite.
Hope for the best...
Thanks but it works only with
Thanks but it works only with known media providers… not any links…
I'm now trying to save the image url as cck link field and then display it as an image using php code… hope it will work…
__
Did you try ajithkumar suggestion?
Adding the link to the image location should bring the image into your node.
Anyway, I use FCKeditor a lot (CKeditor as well) and there you just click the image icon and add the image location URL - then add the positioning and adv. info and the image shows up. Well, you need to choose the right input format - full HTML or whatever you configured allowing the display of images.
.....
The link image field is for
The link image field is for adding link to an image…not to add an image from a link
The FCKeditor solution is good for the node content itself but not if you want to display that image in views…
I found the solution for
I found the solution for views:
1. created a link field in cck for the image url.
2. set "Rewrite the output of this field" in views to
And now I can see the url link as an image in views!! :-)
How can I do the same for the node content? Is there a "Rewrite the output of this field" also for nodes?
Can I clarify what you're
Can I clarify what you're looking for? Does this description seem to fit the bill?
You have some node-type where you want to insert a URL to an image (like http://sitename.com/image.jpg). When the node is published, the image displays not only on the full node, but also in a view. Is that correct? If so, the process would likely be to create a field for the URL using CCK. Then you would alter the display for the particular node-type to insert the URL into an image tag; finally, you'd either create a custom view template to display the image, or if the view is relatively simple, you could probably use tokens to insert the URL in an image tag.
Will there ever be a case where you'll want to upload an image, as well, or just publish images from outside sources?
Yes that’s correct… see my
Yes that’s correct… see my answer up…
I found the solution for views. Now need to do the same for the node…
How I can alter the display for the particular node-type? I need to alter only the link field output…
Subscribing, needing it for
Subscribing, needing it for nodes and images within panels panes.
greetings, Martijn