Edgewall Software
Modify

Opened 15 years ago

Last modified 14 years ago

#8526 new enhancement

SubWiki link & SubMapTxt page

Reported by: Jae <zzzzoooo@…> Owned by:
Priority: normal Milestone: next-major-releases
Component: wiki system Version: 0.12dev
Severity: normal Keywords: interwiki
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

There are several nice features added to support SubWiki in Trac to categorize simliar wiki pages in hierarchical tree structure however linking to SubWiki from an arbitary Trac page can be really tedious if the level of depth become more than one.

If I have a SubWiki page Page/SubPage/SubSubPage/SubSubSubPage and it should be explicitly specified using full path to the SubWiki page.

[wiki:Page/SubPage/SubSubPage/SubSubSubPage]

or

[wiki:Page/SubPage/SubSubPage/SubSubSubPage "This is SubSubSubPage"]

I can use InterWiki and InterMapTxt to create shortcuts to SubWiki pages under Page/SubPage/SubSubPage/.

Define an entry in InterMapTxt
===
SubSubPage http://localhost/trac/wiki/Page/SubPage/SubSubPage/$1 # Categorized under SubSubPage

and then use it as shown below

SubSubPage/SubSubSubPage

or

[SubSubPage/SubSubSubPage "This is SubSubSubPage"]

It worked almost but a problem is that it does not create internal Trac database update (as it is treated as external link) which means Trac does not know the relationship between pages. i.e. BackLinksMacro can not display the back link to SubWiki page if InterWiki is used.

SubWiki macro support simliar to InterWiki using customizable SubMapTxt (like InterMapTxt) would be of great use for those who using SubWiki intensively to categorize simliar wiki pages.

This macro can possibly add /SubSubPage handler which can be utilzed in maintab or navtab to create direct access to categorized SubWiki pages list from Trac menu. (Simliar to HierWikiPlugin#SubWiki mcaro)

I created a Requset-a-Hack ticket #5569 in Trak-Hacks site as well.

Attachments (0)

Change History (4)

comment:1 by Jae <zzzzoooo@…>, 15 years ago

Error in usage of InterWiki example.

It can be used as

SubSubPage:SubSubSubPage

or

[SubSubPage:SubSubSubPage "This is SubSubSubPage"]

comment:2 by Christian Boos, 15 years ago

Keywords: interwiki added
Milestone: 2.0
Version: none0.12dev

Interesting idea.

I'd rather keep using InterMapTxt but allow the use of wiki: prefix in the target, instead of a full URL.

comment:3 by Christian Boos, 15 years ago

Milestone: 2.0unscheduled

Milestone 2.0 deleted

comment:4 by Christian Boos, 14 years ago

Milestone: triagingnext-major-0.1X

See also #3021.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


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