Edgewall Software

Ticket #2150 (closed enhancement: fixed)

Opened 4 years ago

Last modified 8 months 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@…

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 Download (1.1 KB) - added by Remy Blank <remy.blank@…> 11 months ago.
Patch against 0.11-stable fixing the "up" <link> tag for wiki pages and adding an Up link

Change History

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

s/structured/hierarchical/

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

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

This can be done with the macro: MacroBazaar#ParentWiki

  Changed 4 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 2 years 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 2 years ago by cboos

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

  Changed 12 months ago by cboos

  • milestone changed from 0.11.2 to 0.12

Changed 11 months 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 11 months 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 11 months 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 11 months 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 11 months 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 10 months 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].

  Changed 8 months ago by cboos

  • owner changed from cboos to rblank

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

Author


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


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