I honestly think this base_path thing is a disaster... I am seriously thinking about sticking with beta 4 until a solution is found, because it freaks beginner-coders like me out :-(
Does anyone have a specific fix that works already? Including sites in sub folders? With existing static content? Written in a way that even *I* can understand? Please? :-(
regards,
Kobus
I believe Ber's suggestion was to manually re-add the base tag to your theme and just put in whatever value it should have. Poof, legacy links work again while new base_path() links ignore it.
On Tuesday 07 March 2006 08:43, Kobus Myburgh wrote:
I honestly think this base_path thing is a disaster... I am seriously thinking about sticking with beta 4 until a solution is found, because it freaks beginner-coders like me out :-(
Does anyone have a specific fix that works already? Including sites in sub folders? With existing static content? Written in a way that even *I* can understand? Please? :-(
regards,
Kobus
Op woensdag 8 maart 2006 08:24, schreef Larry Garfield:
I believe Ber's suggestion was to manually re-add the base tag to your theme and just put in whatever value it should have. Poof, legacy links work again while new base_path() links ignore it.
Yes, that is my idea. I do that too, mostly because of legacy content, where internal links went boo-boo.
But it so happened that suddenly my themes were all "fixed" too :) Think about url() calls in CSS (they broke), or statically called images/logos in a theme. etc.
Bèr
2006. március 07, kedd 15.43 dátummal Kobus Myburgh ezt írta:
I honestly think this base_path thing is a disaster... I am seriously thinking about sticking with beta 4 until a solution is found, because it freaks beginner-coders like me out :-(
What's your problem exactly? In beta5 there's no base element in the <head>. Is that annoying you? If it is, just insert the old tag in your theme with drupal_set_head() .
I honestly think this base_path thing is a disaster... I am seriously thinking about sticking with beta 4 until a solution is found, because it freaks beginner-coders like me out :-(
Sounds like you shouldn't be using the betas then.
The problem that I have is that when I add it as Ber suggested, all my static links don't work when my site is in a subfolder such as www.mydomain.com/mysite instead of at the root level, www.mydomain.com.
I fail to see how that is an issue - your base_url would change both times to the correct value. If your site is in www.mydomain.com, then your $base_url would be "http://www.mydomain.com". If your site was in a subdirectory, presumably you'd change the value of your settings.php file, and that'd turn your base_url into http://www.mydomain.com/sub.
Where's the actual problem? What links, exactly, aren't working for you? Where is there an online demo so we can see what you're talking about?