Solved

Embed third party images to drupal site

Posted on 2014-01-29
15
411 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: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
 
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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 …
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now