Edgewall Software

Opened 14 years ago

Closed 12 years ago

Last modified 5 years ago

#6413 closed enhancement (fixed)

How do I make an arbitrary anchor (not a heading) in a wiki-page?

Reported by: aberg@… Owned by: Christian Boos
Priority: normal Milestone: 0.12
Component: wiki system Version: 0.10.4
Severity: minor Keywords: anchor
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


I guess I want to do something like this for instance:

bla bla, see [wiki:ThisPage#item1 item 1]

 - [[Anchor(item1)]] This is item 1
 - [[Anchor(item2)]] This is item 2

Attachments (0)

Change History (3)

comment:1 by Christian Boos, 14 years ago

Component: generalwiki
Milestone: 0.12
Owner: changed from Jonas Borgström to Christian Boos
Severity: normalminor
Type: taskenhancement

You can already do this in 0.11 with the following wiki syntax:

bla bla, see [#item1 item 1]

 - [[Span(id=item1)]] This is item 1
 - [[Span(id=item2)]] This is item 2

However, a more user friendly syntax for setting the anchor would be nice. You probably already know that one can specify the ids for headings using the following syntax:

== This heading == #anchor

Something like that could be used for setting an anchor without the need for a heading:

 - [=#item1] This is item 1 
 - [=#item2] This is item 2 

This makes it similar to the syntax for linking to an anchor, with the = character used to mean that it's for setting the anchor. At the same time that character is a reminder of the == heading == #id way.

comment:2 by Christian Boos, 12 years ago

Milestone: next-major-0.1X0.12

comment:3 by Christian Boos, 12 years ago

Resolution: fixed
Status: newclosed

Implemented in r8697.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment

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