[support] theming primary links, or absolute paths when drupal is in a sub-directory
Earnie Boyd
earnie at users.sourceforge.net
Wed Oct 31 19:21:23 UTC 2007
Quoting Amanda Bee <amanda at velociraptor.info>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Earnie Boyd wrote:
>> Quoting Amanda B Hickman <amanda at velociraptor.info>:
>>
>>> I'm not dying to go the .htaccess route, I promise, but I can't figure
>>> out how to persuade drupal that a path in the menu like "/news/" is
>>> relative to the whole site, not relative to drupal.
>>>
>>
>> Try path aliasing, e.g. follows:
>>
>> <code file="/etc/httpd/conf.d/mydomain.conf">
>> <VirtualHost *>
>> DocumentRoot "e:\var\www\mydomain"
>> ServerName www.example.com
>> ServerAlias example
>> Alias /drupal e:\var\www\drupal-5.2
>> Alias /bin e:\var\www\bin
>> Alias /sqladmin e:\var\www\phpMyAdmin-2.6.1
>> </VirtualHost>
>> </code>
>
> I think this means that I would have to define an Alias for anything I
> want to link to from within Drupal's menus system that lives outside of
> my Drupal installation, right?
>
> That kind of defeats the point.
>
And as I've discovered doesn't do what you want from the menu code.
However if you create a block and fill the body with the likes of ``<a
href="/news/">News</a><br/>'' it behaves nicely. Be sure give the
block a nice title and you'll need to activate it once you create it.
Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.com/
More information about the support
mailing list