How to use "%relativeDocRoot%" in RapidWeaver 7?

(Matthias Ficht) #1

For a site I’m working on I have to define a lot of manual links. But since the site will be place on another server until it’s ready I don’t want to use the full URL for the links ( but a variable definition for the path, so that I would not have to change each and every link again when moving the site to it’s final destination. I thought I can do this with Vita for example, but somehow it doesn’t work (the text “relativeDocRoot” is still inside the path as text). Any hints for me how to do this?

(Jannis from inStacks Software) #2

relativeDocRoot is the URL to your current server. What you want to archive will not work that way.

(Matthias Ficht) #3

Ah, ok. Thanks. But isn’t there any other variable to work with a relative path somehow?

(Gary) #4

Wouldn’t relative paths such as …\ and .\ work in this case? So the DocRoot is the site URL set in RW settings.

(Matthias Ficht) #5

Do you mean “…/” and “./” or really “…” and “.”? Hm, should work, will have to try this.
But in my special case I just realized what a complete idiot I am :wink: I totally forgot about RapidWeavers link-dialogue, where I can simply link to another page of the site. Exactly what I needed. Aaarghh, how embarrassing…

(Gary) #6

I mean one of the two :slight_smile: I am a complete idiot too. Sometimes you get distracted you don’t see the obvious.