Edgewall Software

Opened 20 years ago

Last modified 18 years ago

#847 closed defect

Add 'id' attribute to headings in the wiki — at Version 4

Reported by: dmurphy25@… Owned by: Jonas Borgström
Priority: normal Milestone: 0.9
Component: wiki system Version: 0.8
Severity: normal Keywords:
Cc: manuzhai@…, trac-form@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christopher Lenz)

By adding the 'id' attribute to the h* elements in the wiki, it would be possible to link to both a page and a specific section of the page.

e.g.

== Versions ==

…would become…

<h2 id="versions">Versions</h2>

… and could be linked to with [wiki:SomePage#versions].

It would also need to correct case/replace spaces with underscores in both the tag generation and link parsing.

Change History (4)

comment:1 by Christopher Lenz, 20 years ago

Why not add an id to any heading level?

comment:2 by dmurphy25@…, 20 years ago

You're quite right - this should apply automatically to all hn elements.

comment:3 by Christopher Lenz, 19 years ago

Keywords: id tag removed
Summary: Add 'id' attribute to h2 elements in the wikiAdd 'id' attribute to headings in the wiki

comment:4 by Christopher Lenz, 19 years ago

Description: modified (diff)

Ticket #992 has been marked as duplicate of this ticket. It contains a couple of patches.

Note: See TracTickets for help on using tickets.