Ticket #61 (reopened enhancement)

Opened 4 years ago

Last modified 1 year ago

Support linking to HTML fragments within and between wiki pages

Reported by: gabe@bravenet.com Assigned to: developer
Priority: normal Milestone:
Component: Instiki Version: 0.9.2
Severity: normal Keywords: anchor
Cc:

Description

I would like to see support for links to HTML fragments in and between Wiki pages.

I have a page in my wiki that is serving as a glossary of terms used on several other wiki pages. Each term has been given its own HTML named anchor: <a name="specialTerm">Special Term</a>. This means that hitting wiki/view/glossary#specialTerm in a browser will jump straight to that term.

As it stands, there is no way (that I know of) to do [[glossary#specialTerm|Special Term]] as an in-wiki link that will act the same way. Also, links to named links on the same page would be nice... Perhaps a syntax along the lines of "Special Term"#specialTerm would work?

Change History

02/11/05 22:26:35 changed by gabe@bravenet.com

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

Actually, I may have been a little hasty in submitting this ticket.

"Term":Glossary#Term works to link to a named fragment from another page; "Term":#Term works within the same page as the fragment.

Interestingly...

"Term":defterm [defterm]Glossary#Term

...does not work.

04/18/05 18:42:39 changed by tim_baldoni@mcad.edu

  • keywords set to anchor.
  • status changed from closed to reopened.
  • resolution deleted.
  • severity changed from enhancement to normal.

You weren't too hasty. None of this is documented. Also, this should work with camelcase turned off.

Working:

* "Description":WikiWord#anchor?

Not Working:

* "Description":[[Wiki Word]]#anchor

* "Description":[[Wiki Word#anchor]]

* "Description":[[(#anchor)Wiki Word]]

* "Description":[[Wiki Word(#anchor)]]

* etc.

04/23/05 07:24:38 changed by bavel

Beware!: if all of your links to page 'Example Page' are of the form <pre>"Link to page fragment":ExamplePage#fragment</pre> and there is no link to 'ExamplePage?' itself, then that page will be orphaned.

04/28/05 05:18:08 changed by alexeyv

  • severity changed from normal to enhancement.