Page 1 of 1

CSSMenu: relative links instead of absolute...

Posted: Wed Aug 24, 2005 10:31 am
by numer9
Hey,
I've created a template for my new site. I used CSS Menu since it's pretty sweet. But I'm having one problem: the links are absolute. I'm working in internal network and that's all I can see (addresses like 192.168.x.x) - and now the site is done and tested - but from outside it is different address: our main server is www.blabla.com; So it's neither working inside and using 192.x.x.x address or from outside using the www one. I think that relative links would resolve the problem. What do u think? Any suggestions?

numer9

Re: CSSMenu: relative links instead of absolute...

Posted: Wed Aug 24, 2005 11:56 am
by Ted
I don't think we could totally get rid of it, but I could see it being an option in config.php or something.

Re: CSSMenu: relative links instead of absolute...

Posted: Wed Aug 24, 2005 1:01 pm
by numer9
Yeah, that would be sweet... but is there any options to do it now? I'm trying to analise the source code of the whole CMS MS (cause CSS Menu just uses $content->GetURL method... but it's not that easy to figure it out...

numer9

Re: CSSMenu: relative links instead of absolute...

Posted: Wed Aug 24, 2005 1:15 pm
by Ted
There isn't at the moment.  It would take some work to find all of the places..

As far as where GetURL lives, look in lib/contenttypes/Content.inc.php