[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:55:17 UTC 2007
Quoting Cog Rusty <cog.rusty at gmail.com>:
> On 10/31/07, Amanda Bee <amanda at velociraptor.info> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> I don't want drupal to do anything. If I set the path to "/news/" I want
>> drupal to make a link that says <a href="/news/">Foo</a> and not <a
>> href="/drupal//news/">Foo</a>.
>>
>> This is obviously some kind of rocket science like I never imagined.
>
>
> 1. If you want it to always go to http://www.example.com/news, then
> why can't you simply use a fully qualified URL.
>
> 2. If you want the domain to vary, then I can't see on what condition
> can this varying depend (except on Drupal's installation path itself).
>
> Hence my confusion.
>
You seem to miss that Amanda is incorporating Drupal into an existing
system and she wants the existing URL to work within the Drupal menu
system. The Drupal menu system is doing its magic with the URL so that
the relative /news/ becomes q=/news/ instead. You also miss that
Amanda has more than one URL to apply her magic to so she cannot hard
code the host data to the reference.
Perhaps some php coding using
http://api.drupal.org/api/function/hook_link/5 could solve the problem.
But a tag list references in a new block could also suffice.
Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.com/
More information about the support
mailing list