#2150 closed enhancement (fixed)
Add link to parent page for structured wiki page
Reported by: | Owned by: | Remy Blank | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11.2 |
Component: | wiki system | Version: | devel |
Severity: | minor | Keywords: | patch |
Cc: | remy.blank@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Since trac wiki page can be structured,
<link rel='up' ...>
tag is usefull, I think.
For example, adding "<link rel='up' href='..../wiki/foo/bar' />
" for
the page "…/wiki/foo/bar/baz".
I'm using NavigationBar extension on firefox. It handle it if specified. Or, it makes up-link by URL but result URL ends with '/' character (related ticket:2149). So it is better trac wiki provide it.
Attachments (1)
Change History (14)
comment:1 by , 19 years ago
follow-up: 4 comment:2 by , 19 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
This can be done with the macro: MacroBazaar#ParentWiki
comment:3 by , 19 years ago
I'm suggesting HTML accessibility using <link>. Users using these tools supporting page navigation by <link> up/next/prev/start, he may use it although trac does not provide correct parent url. Thus he may get …/wiki/WikiStart/ as new page (#2149).
comment:4 by , 18 years ago
Milestone: | → 0.11 |
---|---|
Resolution: | worksforme |
Severity: | normal → minor |
Status: | closed → reopened |
Replying to mgood:
This can be done with the macro: MacroBazaar#ParentWiki
In 0.11, the relative TracLinks [.. parent]
can be used instead.
As for the up link, it's still a good idea, even if #2149 is now fixed (for tools that don't make up links by URLs).
With the suggestion of #4507, it would be interesting to go to a "parent" page even if that page doesn't yet exist.
comment:5 by , 18 years ago
Owner: | changed from | to
---|---|
Status: | reopened → new |
comment:6 by , 16 years ago
Milestone: | 0.11.2 → 0.12 |
---|
by , 16 years ago
Attachment: | 2150-wiki-up-link.patch added |
---|
Patch against 0.11-stable fixing the "up" <link>
tag for wiki pages and adding an Up link
comment:7 by , 16 years ago
Cc: | added |
---|---|
Keywords: | patch added |
The patch above fixes the "up" <link>
for wiki pages, and adds an "Up" link to the ctxtnav for hierarchical wiki pages. Previously, all wiki pages had an "up" link tag that referenced the latest version of the page, even when the page already was the latest version. This is now changed to either link to the parent page if it is a subpage, or to remove it altogether.
This only affects the display of the latest version of a page. When viewing the page history, the link tags navigate the versions, and the "up" link points to the latest version.
comment:8 by , 16 years ago
Tried the patch and I like it. +1!
Now I can go through my wiki and get rid of all the manually added up links.
follow-up: 10 comment:9 by , 16 years ago
Looks good. +1 for 0.12 inclusion. I'm not sure it's important enough to go into 0.11.2.
comment:10 by , 16 years ago
Replying to jonas:
Looks good. +1 for 0.12 inclusion. I'm not sure it's important enough to go into 0.11.2.
We're heavy users of hierarchical wiki pages at work, where we run 0.11. Do you mind if I push this into 0.11-stable? The risk seems very low to me.
comment:11 by , 16 years ago
Milestone: | 0.12 → 0.11.2 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Patch applied in [7496].
comment:12 by , 16 years ago
Owner: | changed from | to
---|
s/structured/hierarchical/