iNETstore Knowledge Base Home      Documentation (PDF format)      Support Helpdesk

Relative references

Topic: Templates
Products: iNETstore 2002, iNETstore Studio 2001

This article attempts to explain the concept of relative references. When relative references are incorrect you may receive messages that the "page was not found" or an image link may appear broken.

In any form of web page design you must consider the relative reference to where your content actually resides within your web site when you attempt to link to that content (such as a page) or display that content (such as an image).

A relative reference is the path to the content relative to from where you are linking to it.

For example, if I have a page residing in the path:


Then to display an image my code would be:

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

The "relative reference" is that the "images" directory is "back and up one", i.e. "../images".

Example problem (2):

From anywhere but the home page, i.e. from any product category page, all the global links (about us, contact us, view cart, search and Latest Product info, security, freight, FAQ, size and fit) in the header and links return errors, for example:

The requested template(e:\inetstore\public-html\svc003\\catalogue\storeName\cache\freight.ehtml) was not found on this server.


Once a template is executed it is served from the "cache" directory. The relative path from the "cache" directory to the "public" directory is "back and up one", i.e. "../public"

So a link to a page within a template might be coded:

<a href="../public/freight.ehtml">Freight page</a>