Edgewall Software

Ticket #2150 (closed enhancement: fixed)

Opened 3 years ago

Last modified 12 days ago

Add link to parent page for structured wiki page

Reported by: Shunichi Goto <gotoh@…> Owned by: cboos
Priority: normal Milestone: 0.11.2
Component: wiki system Version: devel
Severity: minor Keywords: patch
Cc: remy.blank@…

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@…> 6 weeks ago.
Patch against 0.11-stable fixing the "up" <link> tag for wiki pages and adding an Up link

Change History

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

s/structured/hierarchical/

follow-up: ↓ 4   Changed 3 years ago by mgood

  • status changed from new to closed
  • resolution set to worksforme

This can be done with the macro: MacroBazaar#ParentWiki

  Changed 3 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).

in reply to: ↑ 2   Changed 20 months ago by cboos

  • status changed from closed to reopened
  • resolution worksforme deleted
  • severity changed from normal to minor
  • milestone set to 0.11

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.

  Changed 19 months ago by cboos

  • owner changed from jonas to cboos
  • status changed from reopened to new

  Changed 2 months ago by cboos

  • milestone changed from 0.11.2 to 0.12

Changed 6 weeks ago by Remy Blank <remy.blank@…>

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

  Changed 6 weeks 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.

  Changed 6 weeks 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.

follow-up: ↓ 10   Changed 4 weeks ago by jonas

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   Changed 3 weeks 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.

  Changed 12 days ago by rblank

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from 0.12 to 0.11.2

Patch applied in [7496].

Add/Change #2150 (Add link to parent page for structured wiki page)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.