Posted by john errington on June 17, 2012 at 5:10am
I've set up a simple 4 page site in Drupal for a local kennels/cattery
There are 4 pages - home, cats, dogs, contact.
I can place images using the fields editor and they show up, but I cant locate them where I want on the page. So I set them to "hidden" and they disappear.
Using the "Insert" tool, I can place images on the "dogs" page and it works fine. The other pages will not allow me to place images. The code goes on the page, but no image shows. Here is the code to make the cats page:
<img src="http://localhost/drupal/sites/default/files/curious-cat.png" width="145" height="260" alt="" title="" />We look after catsWhen I use the Element Inspector the code for the image does not show.
<div class="content clearfix">
<div class="field field-name-body field-type-text-with-summary field-label-hidden">
<div class="field-items">
<div class="field-item even" property="content:encoded">
<p>We look after cats</p>
</div>
</div>
</div>
<div class="field field-name-field-animal field-type-image field-label-hidden">
<::after>
</div>The image is shown correctly on the Dogs page. The text is
<img src="http://localhost/drupal/sites/default/files/Border-collie-dog.png" width="298" height="260" alt="" title="" align="left" style="margin: 0px 30px 0px 0px" />XXXX Quarantine Kennels isWhen I use the Element Inspector:
<div class="field-items">
<div class="field-item even" property="content:encoded">
<p>
<img src="http://localhost/drupal/sites/default/files/Border-collie-dog.png" width="298" height="260" alt="" title="" align="left" style="margin: 0px 30px 0px 0px"/>
XXX Quarantine Kennels is a small, ...
</p>
</div>
</div>Hope someone can help! I've checked the default/files/ directory and all my images are there.
Comments
_
make sure the text format used on the pages where the image doesn't show allows the IMG tag-- iirc, the 'filtered' text format doesn't by default.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.