Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

templates and categories/subcategories

Quote Reply
templates and categories/subcategories
Hey there,
we're trying to get Links 2.0 up and running on the site. It's running fine, but we're having some trouble customizing the look and feel.

Specifically, we'd like to use the templates, but having set up subcategories as well as categories, we find that the relative URLs change (duh Smile) .

The problem is that we're using webadverts ssi calls, and because the cgi call is

exec cgi="../foo/ads/ads.pl"

whenever that template is called for a subcategory, the path is wrong, as it should now be

"../../foo/ads/ads.pl"

Does anyone have any advice for me on the smartest way to get around this?

thanks!
will
Quote Reply
Re: templates and categories/subcategories In reply to
That works perfectly!
Many thanks.
Smile
Will
Quote Reply
Re: templates and categories/subcategories In reply to
If foo/ads/ads.pl is off of your root web directory, then use "/foo/ads/ads.pl". This will tell the server/browser that the file resides off of the web root. If it is in another directory off of the root, like links/foo/ads/ads.pl, then use "/links/foo/ads/ads.pl". The key is the beginning "/" which represents the root web directory.

I hope this helps.

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/