Edgewall Software

Changes between Version 6 and Version 7 of 0.12/TracLinks


Ignore:
Timestamp:
Apr 10, 2010, 2:12:35 PM (9 years ago)
Author:
Christian Boos
Comment:

discuss #sibling links

Legend:

Unmodified
Added
Removed
Modified
  • 0.12/TracLinks

    v6 v7  
    130130  [..] or [[..]]
    131131}}}
    132    [..] or [[..]]
    133 
    134 To link from a [trac:SubWiki SubWiki] page to a sibling page, use a '../':
     132  [..] or [[..]]
     133
     134To link from a [trac:SubWiki SubWiki] page to a [=#sibling sibling] page, use a '../':
    135135{{{
    136136  [../Sibling see next sibling] or [[../Sibling|see next sibling]]
    137137}}}
    138  [../Sibling see next sibling] or [[../Sibling|see next sibling]]
    139 
    140 ''(Changed in 0.11)'' Note that in Trac 0.10, using e.g. `[../newticket]`  may have worked for linking to the /newticket top-level URL, but now in 0.11 it will stay in the wiki namespace and link to a sibling page. See [#Server-relativelinks] for the new syntax.
     138  [../Sibling see next sibling] or [[../Sibling|see next sibling]]
     139
     140But in practice you often won't need to add the `../` prefix to link to a sibling page.
     141For resolving the location of a wiki link, it's the target page closest in the hierarchy
     142to the page where the link is written which will be selected. So for example, within
     143a sub-hierarchy, a sibling page will be targeted in preference to a toplevel page.
     144This makes it easy to copy or move pages to a sub-hierarchy by [[WikiNewPage#renaming|renaming]] without having to adapt the links.
     145
     146In order to link explicitly to a [=#toplevel toplevel] Wiki page,
     147use the `wiki:/` prefix.
     148Be careful **not** to use the `/` prefix alone, as this corresponds to the
     149[#Server-relativelinks] syntax and with such a link you will lack the `/wiki/`
     150part in the resulting URL.
     151
     152''(Changed in 0.11)'' Note that in Trac 0.10, using e.g. `[../newticket]`  may have worked for linking to the `/newticket` top-level URL, but since 0.11, such a link will stay in the wiki namespace and therefore link to a sibling page.
     153See [#Server-relativelinks] for the new syntax.
    141154
    142155=== InterWiki links ===