Edgewall Software
Modify

Opened 14 years ago

Closed 11 years ago

Last modified 10 years ago

#2150 closed enhancement (fixed)

Add link to parent page for structured wiki page

Reported by: Shunichi Goto <gotoh@…> 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:

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)

2150-wiki-up-link.patch (1.1 KB ) - added by Remy Blank <remy.blank@…> 11 years ago.
Patch against 0.11-stable fixing the "up" <link> tag for wiki pages and adding an Up link

Download all attachments as: .zip

Change History (14)

comment:1 by Shunichi Goto <gotoh@…>, 14 years ago

s/structured/hierarchical/

comment:2 by Matthew Good, 14 years ago

Resolution: worksforme
Status: newclosed

This can be done with the macro: MacroBazaar#ParentWiki

comment:3 by Shunichi Goto <gotoh@…>, 14 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).

in reply to:  2 comment:4 by Christian Boos, 13 years ago

Milestone: 0.11
Resolution: worksforme
Severity: normalminor
Status: closedreopened

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 Christian Boos, 13 years ago

Owner: changed from Jonas Borgström to Christian Boos
Status: reopenednew

comment:6 by Christian Boos, 11 years ago

Milestone: 0.11.20.12

by Remy Blank <remy.blank@…>, 11 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 Remy Blank <remy.blank@…>, 11 years ago

Cc: remy.blank@… 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 ebray <hyugaricdeau@…>, 11 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.

comment:9 by Jonas Borgström, 11 years ago

Looks good. +1 for 0.12 inclusion. I'm not sure it's important enough to go into 0.11.2.

in reply to:  9 comment:10 by Remy Blank, 11 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 Remy Blank, 11 years ago

Milestone: 0.120.11.2
Resolution: fixed
Status: newclosed

Patch applied in [7496].

comment:12 by Christian Boos, 11 years ago

Owner: changed from Christian Boos to Remy Blank

comment:13 by Morris, 10 years ago

I really need this information ))) Thanks for help )))

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Remy Blank to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.