Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
Header images disappear on Search Results

 

 


minstrel2k
New User

Jul 31, 2002, 8:34 AM

Post #1 of 2 (1938 views)
Shortcut
Header images disappear on Search Results Can't Post

Hello,

I change all my templates and everything is fine except the search results. I am assuming it can't find the images directory because it is calling the search.cgi script.

http://www.mysite.net/cgi-bin/artman/exec/search.cgi?start=3&perpage=2&template=index/default.html

I have placed the images directory in various places and I did not have any luck. My template is calling for the images "../images/image.jpeg". Please advise.


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