Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Embed third party images to drupal site

Posted on 2014-01-29
15
Medium Priority
?
469 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: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
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 
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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

In this article, we will look at our content management system as a whole, to get an idea of how we will start to manage these content items.
In this blog, I will share you some basic tips for content marketing and to rank your website on Google.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

661 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