Page 1 of 1

Preview not working...

PostPosted: Thu Jan 09, 2003 7:33 pm
by Brandon Eley
I've never really played around with the preview feature before but thought
it was a great idea. I just went to preview a few pages and noticed that any
links (relative not absolute) are not pulling up at all. No pictures,
stylesheet, etc.

Anyone know why this is? I would think it should render the page as if it
were in the home directory, since that's where it is... but don't know.

Any help would be appreciated,

Brandon Eley
2BigFeet.com

Re: Preview not working...

PostPosted: Fri Jan 10, 2003 10:48 am
by loren_d_c
It can't render it as if it is coming from the home directory, it is a
cgi in the ShopSite CGI Directory that is serving up the page, so if you
have relative URL's in your page, they will be based on the directory
the preview cgi is located. One way to make relative URLs be based from
your home directory even if the page is actually elsewhere is to use a
BASE tag in the header. Also might be a good idea to refer to your style
sheet css file by it's full URL.

-Loren


Brandon Eley wrote:
I've never really played around with the preview feature before but thought
it was a great idea. I just went to preview a few pages and noticed that any
links (relative not absolute) are not pulling up at all. No pictures,
stylesheet, etc.

Anyone know why this is? I would think it should render the page as if it
were in the home directory, since that's where it is... but don't know.

Any help would be appreciated,

Brandon Eley
2BigFeet.com