[support] img tag not working in drupal
sebastian
inforazor at gmail.com
Thu May 6 16:37:11 UTC 2010
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 at nitesh.com.np <mailto:nitesh at nitesh.com.np>>
>
> try putting <img src="/sites/default/files/imagename.jpg">.
>
>
> On 6 May 2010 09:25, Mutuku Ndeti <jnmutuku at gmail.com
> <mailto:jnmutuku at 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 at koba.be <mailto:info at koba.be>
>
More information about the support
mailing list