Ticket #6025 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

[Patch] Headings should contain ids for anchors to work

Reported by: mitar Assigned to: osimons
Priority: normal Component: FullBlogPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Posts and lists sections headings (h*) should contain ids for anchors to work.

Then it is possible to add to site.html to <head> something like:

<script type="text/javascript">
  jQuery(document).ready(function($) {
    $("#content").find("h1,h2,h3,h4,h5,h6").filter("[id]").addAnchor("Link to this section");
  });
</script>

to enable anchors.

Attachments

anchor.patch (1.6 kB) - added by mitar on 10/24/09 01:15:44.

Change History

10/23/09 15:17:54 changed by mitar

I am attaching a patch which adds ids. Post names are unique. Also sections in listings are. So we just have to take care of proper anchor names.

10/24/09 01:15:44 changed by mitar

  • attachment anchor.patch added.

11/06/09 06:24:18 changed by rjollos

  • summary changed from Headings should contain ids for anchors to work to [Patch] Headings should contain ids for anchors to work.

I'd find this to be useful as well. Would you consider integrating into the trunk?

11/06/09 06:43:30 changed by rjollos

It looks like this patch did not upload, as in #6022.

12/06/09 09:08:03 changed by osimons

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

(In [7225]) FullBlogPlugin: Adding anchors to listings. Works for regular listings, archive and listings using macro. Thanks to mitar for suggestion and patch. Closes #6025.


Add/Change #6025 ([Patch] Headings should contain ids for anchors to work)




Change Properties
Action