i have a simple piece of html code in a block i created, but it only shows up on the font page!!! when i go to other pages on the site but block's title appears but the content is gone. any help would be really appreciated. i'm running drupal 6, and my php memory is set to 128mb. have no idea why this is happening. very frustrating!

<a href="files/Volume1_Issue1.pdf"><img src="files/images/thumbnail_v1i1.gif" width="150" height="194" /></a>

thanks,

ephman

Comments

ephman’s picture

after pulling my hair out for HOURS, i figured it out. wow. the pathauto module was the culprit, to an extent. it was adding /content/ to the url string in the node, breaking the link to download. i guess that's the best way i can explain it.

eph

arh1’s picture

i assume this code is the content of your block:
<a href="files/Volume1_Issue1.pdf"><img src="files/images/thumbnail_v1i1.gif" width="150" height="194" /></a>

you have relative paths for your link and image source. these will work only for URLs in your web root: http://example.com/ , http://example.com/node , etc

it will not work for URLs that appear to be in subdirectories like http://example.com/tags/tag or http://example.com/my/other/path

to fix this issue and make your content more portable, use root relative paths:
<a href="/files/Volume1_Issue1.pdf"><img src="/files/images/thumbnail_v1i1.gif" width="150" height="194" /></a>