By ms1 on
Hi
I am in some trouble w.r.t accessing an image on local.
I have a drupal setup on local. The images location being C:\apache2triad\htdocs\drupal-5\files\images\abc.jpg. I want to access the image and place it in a block (created using 'Views' module) that I have placed in a panel.
I have tried options like
<img src="drupal-5\files\images\abc.jpg">
<img src="http://localhost/drupal-5/files/images/abc.jpg">
<img src="files/images/abc.jpg">
<img src="/files/images/abc.jpg">
Please help.
Regards
Comments
Sorry, the options were missing....Just adding them
I have tried options like
img
assuming img tag is enabled, try
<img src="/drupal-5/files/images/abc.jpg">. if you are using the "private" file system, it becomes<img src="/drupal-5/system/files/images/abc.jpg">.i think(!)
i think u can't display the
i think u can't display the img because u not use full html input format.
use full html input format/php input format for displaying the img
to see where u must point the src maybe u want to browse first on your browser
maybe like http://localhost/drupal-5/files/images/abc.jpg
if that works then put it on src
if u want dinamic then omited the http://localhost
It was about full hmtl.
Thanks Krisna and Todd. It was about me not enabling full-html for the post. Hence 'img' tag was not rendered. Once I did that it worked smoothly.
Regards
something to test
now that the pressure is off, try adding the img tag to the filtered html input format and see if that works for you. if so, you should use that input format.
unless you are the only contributor, and then to save you from yourself. it's a cya thing.
Does not work with filtered html
I tried it with filtered-html but the 'img' tag did not wok with it. But the good part is that I am the only one who would require this facility and not my users. Hence its fine.
Thanks & Regards
Try on Browser
try enter this line on browser url:
http://localhost/drupal-5/files/images/abc.jpg
can u see the image?
I do see the image.
Yes, I can view the image by following the url.
=-=
what tm was trying to convey is that you can add the
<img>tag to your filtered HTML filter. which can be done by going to administer -> input formats -> configure next to the FILTERED HTML format, then on the configure tab, now you can add whatever tags you want to FILTERED HTML filter and they won't be stripped._____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Oh! I got it this time.
Oh! I got it this time. Thank you Kenn and Todd.
Regards
adding <img> tag to filtered HTML
I tried your suggestion and added in the
<img>tag to the filtered html list. When I click on input format, I do see<img>listed, but my images don't display unless I go to full html. I also tried it with<img src>but that didn't work either.The line I'm using on the page is:
which must be correct, since it does display in full html. I'd really like NOT to use full html though.
Gar
experiment
try leaving the trailing " /" out... technically not correct in xhtml, i know.