[support] theming primary links, or absolute paths when drupal is in a sub-directory

Cog Rusty cog.rusty at gmail.com
Wed Oct 31 19:30:55 UTC 2007


On 10/31/07, Amanda B Hickman <amanda at velociraptor.info> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Cog Rusty wrote:
> > On 10/31/07, Amanda Bee <amanda at velociraptor.info> wrote:
> > 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.
>
> Because depending on the machine I'm working from the fully qualified
> URL could be any of
>
> http://www.example.com/news -- which needs to work when I push the whole
> thing live;
> http://staging.example.com/news -- which needs to work while I'm testing
> it;
> http://example.local/news -- which needs to work if I'm going to be able
> to do any work when I'm offline or on a train. Or on an offline train.
> Which I spend more time doing than I really like, working on trains.
>
> >> 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).
>
> The domain varies depending on which site I'm working on -- my local
> offline copy, the public facing staging site, or the live site. I need
> to be able to work and test changes and invite review on the staging
> site, and as a matter of basic practice I want to limit the amount of
> steps that it takes to push code changes live.


Oh, I see. Then you could leave the menu entry as simply "news" and
use a rewrite like this one

RewriteCond %{REQUEST_URI} ^/drupal/news
RewriteRule .* /news [L]

somewhere before the last block of Drupal rewrites. That should change
/drupal/news to /news.


> >> Hence my confusion.
> >
> >
> - --
> [ Drupal support list | http://lists.drupal.org/ ]
> >>
>
>
> - --
> Amanda B Hickman
> (p) 917 655 2579
> (s) amandabee
> (a) amandahlinc
> (w) http://velociraptor.info
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHKMEBrxDTsWdh5zkRAtMwAKCAfK3Il4eZd5dWSzyIyj882XqBnACbBL0m
> 50zN3XXlLkLGMiJBW1obZrE=
> =LdVu
> -----END PGP SIGNATURE-----
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>


More information about the support mailing list