>> Then you're doing it wrong. If $base_url is www.mydomain.com/mysite,
>> then adding the following to your theme would be replicating the
>> behavior of Drupal's past:
>
> Thanks, I will go confirm this tonight at home.
I have confirmed that my $base_url in my settings.php is set correctly, under localhost, then site name, then subfolder. Without a trailing slash. In this case, it is:
$base_url = 'http://localhost/devel/dini470b5'; // NO trailing slash!
I have also reconfirmed that the base_url is correctly shown in the <base href> tag, by viewing the source of the page once it is rendered.
Still, the <a href>'s require that I add the "dini470b5/" in front of "files/pictures". Anyways, this is not an issue anymore, really, because this is the last site I am upgrading with existing content, so this means that I have to do it a few times for images in the theme only, so not a big problem anymore.
Thanks for all the comments!
Kobus
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
> Then you're doing it wrong. If $base_url is www.mydomain.com/mysite,
> then adding the following to your theme would be replicating the
> behavior of Drupal's past:
Thanks, I will go confirm this tonight at home.
> Have you been doing something different?
Not that I know of. Will give feedback tomorrow. Thanks Morbus.
Regards,
Kobus
> http://drupal.org/node/13148#comment-69225
> http://drupal.org/node/13148#comment-69231
Thanks, very technical, but oh well :-) From the length of the discussion, it obviously means it is important. It is seldom that a discussion is that long in a wide spread community of experts and beginners such as Drupal's community. I'll take your word for it :-) Hahaha...
Kobus
> Sounds like you shouldn't be using the betas then.
Perhaps not. But see, how can I be a user as well as a contributor if I don't get involved with the betas? If I am just a user, I can't give back to the cause, but if I do, I can't get up to speed, because of drastic changes all over.
> 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
the $base_url variable is "www.mydomain.com/mysite"
If I then modify base url in the theme and phptemplate as suggested, and put the path to an image in my theme as <a href="files/pictures/whatever.jpg"> then it does not obey the base url, and tries to read the file from www.mydomain.com/files/pictures/...
> 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?
Site at home on localhost - no live demo at the moment. Sorry :-( But I hope my elaboration makes a bit more sense now.
Kobus
Hi!
Thanks for your reply!
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.
This means I have to go and edit the content by hand to make it work. Everywhere where I have an <a href...> when the site is in a subfolder, this proposed solution doesn't work as expected...
Should it be necessary to hack Drupal like this? It just doesn't sound right that this thing that was working perfectly is now broken. What was gain from this change? I see no gains, only heartaches and sorrows. Perhaps if someone can explain to me in terms I can understand what gained was from this, I will understand better and stop resisting the forces of change ;-)
Regards,
Kobus
>>> larry(a)garfieldtech.com 3/8/2006 9:24:23 AM >>>
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
--
Larry Garfield AIM: LOLG42
larry(a)garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
--
[ Drupal support list | http://lists.drupal.org/ ]