Solved

Embed third party images to drupal site

Posted on 2014-01-29
15
445 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 3
  • 3
15 Comments
 

Author Comment

by:glepiza
ID: 39818731
anyone?
0
 
LVL 13

Expert Comment

by:Arrow_1
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
Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

 
LVL 13

Assisted Solution

by:Arrow_1
Arrow_1 earned 100 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 100 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:Arrow_1
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

DotNetNuke (DNN) (http://www.dotnetnuke.com) is a leading open source web content management system (CMS) and application development framework for Microsoft .NET. Localization is an essential part of building websites, especially in countries that …
A big percent of today’s marketing activity is performed through the online environment. The marketing strategies that have existed a decade ago no longer relate to what’s happening today. We’re currently facing a revolutionary era, called the digit…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 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