2
votes

I'm doing a drupal site. i want show a facebook image in my page content in home page.

i have edited content of that page. i have edited the body of that content through admin

and put the text in body like this

The BikeGlow™ Safety Light runs on 2-AA batteries. Light tube length is 10'. Complete unit weighs under 2 oz (without batteries). Light tube attaches to frame with included attachment strips.
"It's like magic cycling protection from cars!" < img src='bikeglow_com/sites/default/files/5u84f48n.gif' alt="facebook" />

but after saving image is not showing there even that alt tag is not coming. can any one help me, what will be reason for his

3

3 Answers

5
votes

Drupal strips most HTML tags by default when you are creating a Story or Page. Allowed tags in the Filtered HTML mode are <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> and <dd>. As you can see, no <img> tag is allowed.

To do this, you can simply open the "Input Format" collapsed box beneath your text area field. If you open this, by default you should have the option to choose between "Filtered HTML" and "Full HTML".

Input Format

Choose for "Full HTML" and your <img> tag should be allowed and the image should show up.

0
votes

Due to a Drupal bug my "Full HTML" input format profile was nor really "full," it was filtering out identically to "Filtered HTML." Turns out you can configure "Full HTML" and either add more allowed tags, or turn off HTML filtering altogether.

0
votes

A combination of the image module and the image assist module meet 90% of needs. For image module follow http://drupal.org/project/image For image assist module follow http://drupal.org/project/img_assist

I personally used and it fairly solved my problem. Hopefully you will like. :)