I’ve noticed that the [~[*id*]~] syntax doesn’t actually output the full path to a document, i.e. the absolute path. It’s always the relative path in reference to the document root.
Is there a way to change this behavior, or do I always have to type [(site_url)][~[*id*]~] to get this result?
There is no way to change [~x~] behavior, as it is designed to be used in conjunction with [tt]<base href="[(site_url)]"/>[/tt]. There may be faster ways to accomplish absolute url output, but I would need to know how you intend to use the functionality.
-
☆ A M B ☆
- 1,056 Posts
Quote from: jlivingston at Apr 10, 2007, 04:45 PM
I’ve noticed that the [~[*id*]~] syntax doesn’t actually output the full path to a document, i.e. the absolute path. It’s always the relative path in reference to the document root.
Is there a way to change this behavior, or do I always have to type [(site_url)][~[*id*]~] to get this result?
Personally, I use [~[*id*]~] in conjuction with <base href> and it’s golden. However, if you need absolute path for some other reason, then that’s a different story