Yes, ALWAYS use the php to insert the path!! The alternative to what KOBA wrote is: src="<?php print base_path() . path_to_theme() ?>/images/imagename.jpg" If your images are in your theme folder. KOBA | Hans Rossel wrote:
or better <img src="<?php print base_path() . file_directory_path(); ?>/imagename.jpg" /> ie let Drupal determine the location of your file path and make sure you are using xhtml (so close the img tag with />)
Hans
2010/5/6 Nitesh <nitesh@nitesh.com.np <mailto:nitesh@nitesh.com.np>>
try putting <img src="/sites/default/files/imagename.jpg">.
On 6 May 2010 09:25, Mutuku Ndeti <jnmutuku@gmail.com <mailto:jnmutuku@gmail.com>> wrote: > I am editing "page.tpl" I have put in <img > src="sites/default/files/imagename.jpg">. >
-- Hans Rossel KOBA Webdesign bvba Beukenlaan 56 9051 Gent (Sint-Denijs-Westrem) Belgium BTW 0817.931.516 +32.9.334.52.60 +32.472.79.32.16 www.koba.be <http://www.koba.be> info@koba.be <mailto:info@koba.be>