
Luke
Staff
/ Moderator

Jul 31, 2002, 3:16 PM
Post #2 of 2
(1925 views)
Shortcut
|
|
Re: [minstrel2k] Header images disappear on Search Results
[In reply to]
|
Can't Post
|
|
Hi, Article Manager's search.cgi file uses HTML template files to display the search form and search results pages. These template files are located in the /templates directory. All of Articles Manager's article and category index files are published to the /artman/publish directory. So while files the /publish directory will have no trouble finding the /images directory that's one directory back (/artman/images) by typing in the relative URL../images/image.jpeg, files in the templates directory will not be able to find that same /artman/images directory (using the same ../images/ relative URL) because the /templates directory is in an entirely different location on the server (/cgi-bin/artman/templates/). And even if you placed an /images directory in the /cgi-bin/artman directory these images may appear broken because many web servers don't allow you to store images inside your cgi-bin directory. The best way to fix this is to change the relative URL in your image tags to an absolute URL. In your image tags try changing the relative URL: ../images/image.jpeg To the full URL like this: http://www.mysite.net/artman/images/image.jpeg or like this: /artman/images/image.jpeg Now regardless of where on the server the HTML files (that are trying to include your images) are, your image tags will be pointing directly to the appropriate /images directory. :) Luke Holzken Product Development
|