how to use image tag ina page

ask4prasath - November 25, 2009 - 20:18

hello friends,

i want to insert an image using the html image tag in a page or panel
<img src="/sites/all/themes/nigraphic/nigraphic/images/app.jpg" width="200" height="150" />
i set the input format as full html
but still am not displaying any image

if you use <img src="" /> in

Arshad Chummun - November 25, 2009 - 20:31

if you use <img src="" /> in full html it shoud display. but if you want to upload an image into the content you'll need a wysiwyg editor

http://drupal.org/project/wysiwyg

and

imce http://drupal.org/project/imce

Arshad Chummun
Mauritius Drupal Developer
Join the Drupal Mauritius User Group
Our IRC Channel : #drupal-mu

I dont want to use any editor

ask4prasath - November 25, 2009 - 20:36

I dont want to use any editor or cck image field
coz panels does nt support editors
but still it is not displaying

=-=

VM - November 25, 2009 - 20:43

It sounds like you are using the FILTERED HTML input format, which is the default input format and doesn't allow img tags.

Two options for this issue.

to add the image tag to the FILTERED HTML input format
go to administer -> input formats
edit the FILTERED HTML input format and add the img tag
edit the node in question where the image isn't showing
save the node so that the changed input format can take effect

test

or edit the node in question
under the body text area is a collapsed menu called input formats, click it
shift your input format to FULL HTML
save the node

test

try to use firebug to see if

Arshad Chummun - November 25, 2009 - 20:43

try to use firebug to see if the tags is displayed in the source. maybe its the src attribute which is not good.

Arshad Chummun
Mauritius Drupal Developer
Join the Drupal Mauritius User Group
Our IRC Channel : #drupal-mu

 
 

Drupal is a registered trademark of Dries Buytaert.