Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Embed third party images to drupal site

Posted on 2014-01-29
15
Medium Priority
?
481 Views
Last Modified: 2014-02-11
Hello,

I am creating couple of fields for my City content type, but I don´t know what module should I use to embed images from third party sites.
One of my fields name is City Image for which I would like  http://media-cdn.tripadvisor.com/media/photo-s/04/c1/60/a3/casanovas-hotel-boutique.jpg. But I don't know how to do to display the actual image and not the link.

Could you please help me?

Thanks

Winter
0
Comment
Question by:glepiza
  • 9
  • 3
  • 3
15 Comments
 

Author Comment

by:glepiza
ID: 39818731
anyone?
0
 
LVL 13

Expert Comment

by:Aaron Feledy
ID: 39818981
0
 

Author Comment

by:glepiza
ID: 39819059
Thank you for your answer.

I activated the module but I don´t see it on my field types. Could you please take a look at the screenshot and see if I am just overlooking it?

Thanks
Captura-de-pantalla-2014-01-29-a.png
0
Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

 
LVL 13

Assisted Solution

by:Aaron Feledy
Aaron Feledy earned 300 total points
ID: 39819422
I believe it uses the existing image field type and just adds the functionality to it.
0
 

Author Comment

by:glepiza
ID: 39820835
ok. I am going to try and see how it goes. Be right back
0
 

Author Comment

by:glepiza
ID: 39821513
I keep getting this error message every time I click over select media to add the link. I really don´t understand what is going on, could you please help me?

he requested page "/media/browser?render=media-popup&types%5Bimage%5D=image&activePlugins=&schemes%5Bhttp%5D=http&schemes%5Bhttps%5D=https&schemes%5Bfeed%5D=0&schemes%5Bpublic%5D=0&schemes%5Bprivate%5D=0&file_directory=&file_extensions=png+gif+jpg+jpeg&max_filesize=&uri_scheme=public&plugins=undefined" could not be found.
0
 
LVL 2

Assisted Solution

by:itkadmin
itkadmin earned 300 total points
ID: 39821656
Where do you want to embed it? Are you looking for a content field or embedding in the body?

If you want to embed in the body, select Full HTML and this should work:

<img src="http://media-cdn.tripadvisor.com/media/photo-s/04/c1/60/a3/casanovas-hotel-boutique.jpg" alt="Alt Text Here" title="Image From Another Site"/>

Example here http://www.craigclark.ca/node/8

There are a lot of things you can do to accomplish this without using a new module. That depends though on who is adding content, your knowledge of views and/or templates.

The easiest, if you don't have to worry about a lot of people adding content who may or may not be able to put the code in properly would be to make a long text field, set it to full HTML and enter the code manually as above.

I'm not sure what you are up to, but I'd advise caution when using images linked from another site.
0
 

Author Comment

by:glepiza
ID: 39821888
Hi itkadmin. Thank you very much for your answer.

You are right, I need to be cautious. I know the images are going to be added to the site by the site administrator so far.

There is a section on the website where the admin suggests places to go depending on the City. But he (the admin) does not want to upload images to the site, instead he wants to  add them from third party places such as trip advisor.

I like the idea of adding the images without modules, so I am going to try your suggestion. I will be back shortly, I need to go out for a moment and in like in two hours I will back.

Thank you very much,

Winter
0
 
LVL 13

Expert Comment

by:Aaron Feledy
ID: 39821917
Try updating to the dev version of the module. Lots of times errors like that are fixed in the dev versions.
0
 

Author Comment

by:glepiza
ID: 39824682
sorry for taking so long to reply. I am trying to get rid of this error that is not letting me see my content type in which I have the fields I need:
EntityMalformedException: Missing bundle property on entity of type file. in entity_extract_ids()

Once I find the solution for that, I will apply either of your solutions for the type fields.

Thanks
0
 
LVL 2

Expert Comment

by:itkadmin
ID: 39824690
What type of fields are you working with?
0
 

Author Comment

by:glepiza
ID: 39824770
Mostly Images. I am going to update drupal core, it seems I have 7.24 and I need 7.26. If I keep getting that error message after the update, I will give you more details about the types fields I am working on. Perhaps I just need to update to get rid of that error. :)
0
 

Accepted Solution

by:
glepiza earned 0 total points
ID: 39841080
Hi guys,

I ended up using only the media module and on my content fields I set the image widget to Media File selector and it displays the form to add the image url.

But thank you guys for your help. I always learn something new on this site. All your suggestions are very helpful for me.

Thanks
0
 
LVL 2

Expert Comment

by:itkadmin
ID: 39841684
Glad it worked out for you
0
 

Author Closing Comment

by:glepiza
ID: 39849700
I found the final solution.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Loops Section Overview
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question