Edgewall Software

Ticket #4507 (closed enhancement: fixed)

Opened 23 months ago

Last modified 8 days ago

Improve behavior of hierarchical page names

Reported by: christian@… Owned by: rblank
Priority: normal Milestone: 0.12
Component: wiki system Version: 0.10.2
Severity: minor Keywords: hierarchy patch
Cc: osimons

Description

I was looking for release notes for trac 0.10.3, when I opened the URL http://trac.edgewall.org/wiki/TracDev/ReleaseNotes/0.10 and figured that there might be another page for it. So I removed th "0.10" from the URL's end - and got the standard "describe this page" dialog.

I could certainly search for that page, but that's not what I expected, although I'm a somewhat experienced trac user. I'd assume that trac handled this more elegantly, i.e.:

  • notice that the requested page doesn't exist
  • query for page names matching the requested pattern
  • link to those pages from the "create new page" dialog
    • "However, there are pages with a name similar to the one you've been looking for: ... print linked list of page names"

It could be standard functionality to put a list of matching page names in HDF so the current page could easily display a list of sub-pages. This also references #2149, #2150.

Attachments

4507-scoped-wiki-links-r7455.patch (3.6 KB) - added by Remy Blank <remy.blank@…> 3 months ago.
Patch against 0.11-stable making wiki TracLinks in wiki pages scoped
4507-scoped-wiki-links-r7557.patch (3.6 KB) - added by rblank 8 weeks ago.
Updated patch for current trunk
4507-scoped-wiki-links-r7578.patch (5.1 KB) - added by rblank 7 weeks ago.
Improved usability for creating hierarchical pages

Change History

Changed 23 months ago by cboos

  • keywords hierarchy added
  • owner changed from jonas to cboos
  • severity changed from normal to minor
  • milestone set to 0.11

Interesting idea. I'll look into it for 0.11, as we want to improve support for Wiki page name hierarchies there (see also #4412).

Changed 23 months ago by cboos

Changed 22 months ago by cboos

#3021 was also requesting better support for "namespaces" in the TracWiki, and was closed as duplicate.

Changed 11 months ago by cboos

  • milestone changed from 0.11.1 to 0.12

In order to better support "namespaces" (as in #3021 and #4412), I think it would be good that when resolving a Wiki page link, we first look in the local scope.

Example:

  • TracInstall referenced from within a page starting with the '0.11/' prefix should link to 0.11/TracInstall as that page exists
  • TracInstall reference from within a page starting with the 'TracDev/' prefix will link to the toplevel TracInstall, as TracDev/TracInstall? doesn't exist
  • for disambiguation needs, it's possible to refer to the toplevel page using the ["/TracInstall"] or [wiki:/TracInstall] syntax

Changed 3 months ago by Remy Blank <remy.blank@…>

Patch against 0.11-stable making wiki TracLinks in wiki pages scoped

Changed 3 months ago by Remy Blank <remy.blank@…>

  • cc remy.blank@… added
  • keywords patch added

The patch above makes wiki TracLinks in wiki pages scoped. Given the following pages:

  • FirstLevel
  • FirstLevel/SecondLevel
  • FirstLevel/SecondLevel/ThirdLevel
  • FirstLevel/SecondLevel/OtherThirdLevel

Then the links below, placed on FirstLevel/SecondLevel/ThirdLevel, resolve as follows:

  • FirstLevel -> FirstLevel
  • SecondLevel -> FirstLevel/SecondLevel
  • ThirdLevel -> FirstLevel/SecondLevel/ThirdLevel
  • OtherThirdLevel -> FirstLevel/SecondLevel/OtherThirdLevel
  • [wiki:/OtherThirdLevel] -> OtherThirdLevel
  • MissingPage -> MissingPage

The patch also adds a test case for the typical scenarios.

Changed 2 months ago by osimons

  • cc osimons added

Changed 8 weeks ago by rblank

Updated patch for current trunk

Changed 8 weeks ago by rblank

  • owner changed from cboos to rblank

Oops, I didn't notice the milestone for this ticket. The patch above is the same but for the current trunk. Feedback appreciated.

Changed 8 weeks ago by cboos

  • milestone changed from 0.13 to 0.12

Patch looks great.

Changed 8 weeks ago by rblank

Thanks for the review. I'll apply it later this week, and also update the documentation.

Changed 7 weeks ago by rblank

Improved usability for creating hierarchical pages

Changed 7 weeks ago by rblank

  • cc remy.blank@… removed

I wasn't too happy with the usability of the previous patch. This patch adds two improvements:

  • Non-existing pages link to a sibling page of the container page, instead of a top-level page. This means that, in the same situation as comment:5 (i.e. when a link is placed on FirstLevel/SecondLevel/ThirdLevel), the following mapping is done:
    • MissingPage -> FirstLevel/SecondLevel/MissingPage
  • When accessing a non-existing hierarchical page, in addition to to the "Describe ... here." message, a list of links to the same page, but higher up in the hierarchy, is presented. For example, when viewing FirstLevel/SecondLevel/MissingPage, the following links are displayed:
    • FirstLevel/MissingPage
    • MissingPage

These improvement should make it easier to create the desired page.

I am not sure about one thing, though. Currently, the links on non-existing hierarchical pages point to the page viewer. Should they point to the editor instead (i.e. with action=edit)?

Comments welcome.

Changed 8 days ago by rblank

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

Patch applied in [7685].

Add/Change #4507 (Improve behavior of hierarchical page names)

Author



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.