Quote from: sottwell at Apr 09, 2008, 07:29 AM
<a href="[(site_url)]"> maybe?
That would give a link to the root, but on some other pages I would like a like to another document. Actually, my setup is more specific (which maybe I should have mentioned in my original post): this is (a simplified version of) my layout
-Doc 1
-Doc 2
-Doc 3
-Doc 4
|-Doc 5
|-Page 6
On Pages 1 to 3, I would like the link to be to the site root, which is actually Doc 1, but without the alias of Doc 1 showing in the address bar. On pages 4 to 6, I would like a link to Doc 4. Now, having [(site_url)] would be good for pages 1 to 3, but would show the wrong link in Docs 4 to 6. I also looked into putting [!UltimateParent!]. This would be good for Docs 4 to 6, and Doc 1, but Docs 2 and 3 would link to themselves, and not to Doc 1 as I would like.
I thought of just having a TV with the ID of the document to link to say TVOfIDToLinkTo, and putting [~[*TVOfIDToLinkTo*]~] in the link, but for links to the site root (which is doc 1), the alias of that document became part of the link. I tried treating the site root as doc 0, but that resulted in a "0" as the alias for the document in the link. Thus my TV+custom snippet solution.
Michal.