Posted on: 02/09/06 02:46pm
By: etegration
hi all, how can i use "reletive links" on my GL site? as mention in other threads posted, we use 2 test servers to test out GL before moving them onto the production server and at times we make multiple copies of GL within each test server and the URL may be slightly different but we just need to alter config.php and lib-common.php to reflect everything and the site loads but static pages and blocks may not work as they're hard coded. Anyway to say instead of using
<a href=http://www.siteurl.com/index.php?somelink>link here</a>
we can use something like a href='site_url'/index?somelink>link here </a> instead? since config.php already has called for this in line:
$_CONF['site_url'] = 'http://www.siteurl.com';
thanks in advance.
'site_url'
Posted on: 02/09/06 03:14pm
By: Dirk
[QUOTE BY= etegration] <a href=http://www.siteurl.com/index.php?somelink>link here</a>[/QUOTE]
How about <a href="/index.php?somelink">link here</a>
bye, Dirk
'site_url'
Posted on: 02/09/06 03:56pm
By: etegration
[QUOTE BY= Dirk] [QUOTE BY= etegration] <a href=http://www.siteurl.com/index.php?somelink>link here</a>[/QUOTE]
How about <a href="/index.php?somelink">link here</a>
bye, Dirk[/QUOTE]
possible to call in 'site_url'??? i really need it, my GL installation's folder structure is very different as it has been modifed a lot over the years.
'site_url'
Posted on: 02/09/06 04:06pm
By: Dirk
[QUOTE BY= etegration] possible to call in 'site_url'???[/QUOTE]
Nope. There are no variables in stories.
The only other thing I could think of:
Autolinks[*1] ?
bye, Dirk
'site_url'
Posted on: 02/10/06 12:39am
By: etegration
[QUOTE BY= Dirk] [QUOTE BY= etegration] possible to call in 'site_url'???[/QUOTE]
Nope. There are no variables in stories.
The only other thing I could think of: <a href="http://www.geeklog.net/article.php/autolinks">Autolinks</a>?
bye, Dirk[/QUOTE]
thanks anyway.