Modify ↓
Opened 16 years ago
Closed 16 years ago
#6025 closed enhancement (fixed)
[Patch] Headings should contain ids for anchors to work
| Reported by: | Mitar | Owned by: | 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 (1)
Change History (5)
comment:1 Changed 16 years ago by
Changed 16 years ago by
| Attachment: | anchor.patch added |
|---|
comment:2 Changed 16 years ago by
| Summary: | Headings should contain ids for anchors to work → [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?
comment:4 Changed 16 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
(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.
Note: See
TracTickets for help on using
tickets.



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.