[geeklog-users] Static pages and image directory

geeklog-users-admin at lists.geeklog.net geeklog-users-admin at lists.geeklog.net
Tue Sep 2 14:57:40 EDT 2003


Duane wrote:

>I have a need for some graphics in a static page. No matter where I have
>put them, I have not been able to reference them in my html without
>giving the full url.

What's wrong with the full URL?


>Does anyone know which directory the static page
>looks in for graphics, etc?

For normal static pages, the "staticpages" directory is the current
directory, so you could use

    <img src="../images/mail.gif">

to reference the little mail icon in the images directory. However, that
will not work when the static page is used as a center block. So I'd
suggest you either stick with the full URL or use a URL relative to the
document root of your site, e.g.

    <img src="/images/mail.gif">

bye, Dirk

P.S. Your post had to be approved manually - please make sure your
posting from the address that you used when registering with the mailing list.


-- 
http://www.haun-online.de/
http://www.macosx-faq.de/




More information about the geeklog-users mailing list