CSSMenu: relative links instead of absolute...

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
numer9

CSSMenu: relative links instead of absolute...

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

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

Post 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.
numer9

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

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

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

Post 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
Locked

Return to “Modules/Add-Ons”