Hello everybody
i am trying to use this default [*parent*] Template variable for navigation purpose :
<link rel="up" href="[~[*parent*]~]">
This <head> element is supposed to be used by
iCab /
Opera &
Link Widget Firefox Add On to link to the hierarchical parent of a document.
But i do not know how to deal with the "0" id :-/
Let see an example
My site (0)
-News (2)
--Today news (4)
--Yesterday news (5)
-Index (3)
If we are in the page "Today news" or "Yesterday news" the link work perfectly and point to "News"
But if we are in the page "News" or "Index" the link point to the "0" id document who did not exist.
I know than as a workaround i can put all the hierachy under "Index" but if it solve the proble for "News" and similars it will not solve it for "Index" main document (who is suppose to point to itself).
So
- Is an another way to create the "parent" link who avoid the problem of the "0" document ?
- is there a way to tell to the 0 document to redirect to the "main" page (Index in this case) ?