Image Paths

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
daveg
Posts: 4
Joined: Fri Dec 12, 2003 11:41 am

Image Paths

Post by daveg »

Hi Guys,

Having a problem with a HTML nugget i'm using, need some advice on the paths I need to use for my images.

This is an example of one of the images I have in my nugget, it displays on the front page find, but it doesn't appear on any other pages i.e archives, category links...

<img src="mozillabetter.gif" border="0">

What am I doing wrong?

Cheers

Dave
jhermanns
Site Admin
Posts: 378
Joined: Tue Apr 01, 2003 11:28 pm
Location: Berlin, Germany
Contact:

Post by jhermanns »

you need to specify the absoulte path! if the html nugget is displayed in the same path, where your image is (/serendipity/ for example) it works fine, but when you're browsing an article you're in /serendipity/archives/ - your image won't show.

so set the image src to src="/serendipity/mozillabetter.gif" or whatever the path of your serendipity index page is (respectively where mozillabetter.gif resides).
daveg
Posts: 4
Joined: Fri Dec 12, 2003 11:41 am

Post by daveg »

thanks! bit of a dumb ass question really, i'm usually a lot better than that!

:D
Post Reply