I share here a solution to have numbered headings in Confluence,
Problem description
Confluence does not offer a built-in capability to number headings i.e. Headings are by default without numbers.
You can manually add numbers in the heading text but the numbering is not automatic, like you are used to for example in Microsoft Word.
Solution
The solution is based on some javascript that is packed as a bookmarket.
Setup
Copy Javascript
Create Bookmarklet
- Go to https://mrcoles.com/bookmarklet/
- Paste the code from step before
- Rename it
- Install Bookmarklet
- Drag and Drop for example to your Bookmarks Side bar
Usage
In Confluence in Edit mode.
Click on the Bookmarklet
You can make the Bookmarklet easily accessible by toggling the side panel in Chrome and display Bookmarks.
For quick access, I put the Bookmarklets on the top level of the Bookmarks.
Alternatively, you could use the Bookmarks Bar but I have it hidden by default to spare space.
It will provide numbers to the Headings
It will also update the numbering. You need to rerun the script to update the numbering.
You can undo it in the Editor by example using Ctrl+Z
Next steps
I would like to implement this functionality in a Chrome Confluence Extension (that would also includes advanced search capability). See here.
No comments:
Post a Comment