Edgewall Software
Modify

Ticket #2150 (closed enhancement: fixed)

Opened 6 years ago

Last modified 2 years ago

Add link to parent page for structured wiki page

Reported by: Shunichi Goto <gotoh@…> Owned by: rblank
Priority: normal Milestone: 0.11.2
Component: wiki system Version: devel
Severity: minor Keywords: patch
Cc: remy.blank@…
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

2150-wiki-up-link.patch (1.1 KB) - added by Remy Blank <remy.blank@…> 4 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

comment:1 Changed 6 years ago by Shunichi Goto <gotoh@…>

s/structured/hierarchical/

comment:2 follow-up: Changed 6 years ago by mgood

  • Resolution set to worksforme
  • Status changed from new to closed

This can be done with the macro: MacroBazaar#ParentWiki

comment:3 Changed 6 years ago by Shunichi Goto <gotoh@…>

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 in reply to: ↑ 2 Changed 5 years ago by cboos

  • Milestone set to 0.11
  • Resolution worksforme deleted
  • Severity changed from normal to minor
  • Status changed from closed to 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 Changed 5 years ago by cboos

  • Owner changed from jonas to cboos
  • Status changed from reopened to new

comment:6 Changed 4 years ago by cboos

  • Milestone changed from 0.11.2 to 0.12

Changed 4 years ago by Remy Blank <remy.blank@…>

Patch against 0.11-stable fixing the "up" <link> tag for wiki pages and adding an Up link

comment:7 Changed 4 years ago by Remy Blank <remy.blank@…>

  • 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 Changed 4 years ago by ebray <hyugaricdeau@…>

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 follow-up: Changed 3 years ago by jonas

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

comment:10 in reply to: ↑ 9 Changed 3 years ago by rblank

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 Changed 3 years ago by rblank

  • Milestone changed from 0.12 to 0.11.2
  • Resolution set to fixed
  • Status changed from new to closed

Patch applied in [7496].

comment:12 Changed 3 years ago by cboos

  • Owner changed from cboos to rblank

comment:13 Changed 2 years ago by Morris

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from rblank. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.