Using confluence 4.3.3 - Started a numbered list to add steps in. Inserted a picture and would like to continue with the number list rather than starting at one again. How do you do this?
Thanks
Hello Mike,
This sounds like a great place to use the Source Editor Plugin.
https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugins.editor.confluence-source-editor
This plugin will allow you to edit the raw html on any page in Confluence. You will just remove the end and begin "ol" tags after your image is inserted.
I think I will use this plugin too... Thanks for the tip @Daniel
Thanks for the information, will give it a go. Cheers
mike
You don't have to use the Source editor.
I've tried this plugin for a few days. It really looks promising.
Mike,
Use Shift+Return to create a line in your list that is un-numbered. Do that as often as you like. You can insert graphics in the un-numbered line.
Press return to re-start the numbered list at the right place.
Cheers.
Thanks Mick and Stefan. On a related note, if I want to add dot points to a number then the number goes astray again. Is it possible to do this? Eg number 1, number 2, dot point, dot point, number 3. (or does this require the source plugin?)
Hi Mike,
For this to be possible, I think you'll need to revert to Daniel's answer above and use the source editor to insert a bulleted <ul> </ul> list inside a <ol> </ol>
Hi Ryan,
you're absolutely right! Using the Source plug-in is possible and maybe a solution for technical users. But it is neither efficient nor usable for users who don't know how to use XHTML. I'd recommend to you to use a user macro. I wrote it for you:
## Macro title: nestedNumberedLists ## Macro has a body: Y ## Body processing: Rendered ## Output: HTML ## ## Developed by: Stefan Eike ## Date created: 24/04/2013 ## Installed by: Stefan Eike ## @noparams <style type="text/css"> <!-- li { list-style-type: none; } ol > li { counter-increment: h1c; counter-reset: h2c; } ol > li:before { display: marker; content: counter(h1c) ". "; } ol > li > ol > li { counter-increment: h2c; counter-reset: h3c; } ol > li > ol > li:before { display: marker; content: counter(h1c) "." counter(h2c) " "; } --> </style> <div> ${body} </div>
Looks like this in the editor:
And like that in View mode:
Thanks Stefan, will talk to my administrator to see if I can get the macro added and give it a go.
Thanks Ryan.
I would say you can create the lists separately and then use the source editor to move one (bulleted) into the spot you want it in the ordered list.
Thanks Sam, that sounds like another option
Does Source Editor work with Confluence On Demand? When I do an add-on search for it, it doesn't show up in the results.
How can you get this macro added? Do we need to have this as a file with certain extension so that it can be picked up by Add-on setting?
I installed the macro successfully, but not sure how it helps to continue the numbering after a picture is inserted in the middle of the items.
The fact this question is being asked and 3 years later is still catching people out says a lot about this product...
Thanks Stefan, this works fine.
I would like this to be more intuitive. Stefan's comment below worked just fine for me but I feel like it's a bit of a kluge.
I would prefer Confluence to obey:
<ol>
<li> </li>
graphic
grapic
</ol>
Which, of course, equates to
1
2
3
or
allow this markup:
<ol start="X">
What do you think Confluence?
It is absurd that Confluence still seems to feature no easy way to "Continue Numbering" like Microsoft Word does. Even when you Import numbered content from a Word doc, Confluence re-starts numbering from 1, rather than retaining number values in the Word doc.
This works for images, but I cannot get it to work for info or note macros
That worked for code macro as well. Thanks
See the response above from Steven Eike, about using [shift]+[enter]. This seems to work perfectly for me. It also has by far the most up-votes but I don't think the OP or a moderator has been back to change it to an accepted answer.
Shift-Enter does not work anywhere near 'perfectly', because its paragraph formatting is tied to the previous paragraph. (In fact they are the same paragraph, but with a line break inserted.) This means that any paragraph formatting will impact everything before and after the line break character.
Indeed. It's a shit solution for a problem WE SHOULD NOT HAVE in 2017. This problem was solved DECADES ago.
It would be fine to get this possability.
If i have a legend under a Picture, e.g. with 13 points of explanation, i want to sort it in two raws, to get a better overview in a paper (not a long list and a disturbtion in the complete overview).
I voted for the feature ( editor e.g. (ol start="XX"))
How about just being able to cut and paste a graphic. Using confluence is a pain to upload word documents. I shouldn't have to reformat my word document and manually figure out a way to import images that work fine in the word document. It's not like word is a new thing.
Is there some reason a simple HTML expression <ol start="X"> isn't allowed to do its job in Confluence? This is very frustrating, not to mention annoying.
Agreed. I have used the source editor and the shift+return methods to manage keeping my ordered lists properly numbered. However, it can be painful. And now I need to numbering sequence between two sections... What a pain! Can't we get the <ol start="n"> working?
Hello Mick & Stefan, if you are still out there... This answer did really help a lot; thank you. This post was in 2013, so I was wondering if in the intervening five years you have figured out an easy, non-technical way to start a numbered list at a selected number? I'm a writer, not a software engineer. I have to use Confluence, but am frustrated with simple stuff like trying to do a two column layout with numbered lists. Such as item 4 starts at the top of the right column (continuing from number 3 that ends at the bottom of the left column).
Got any more easy magic for us? Thanks!
If you don't mind using "a., b., c." and "i., ii., iii" instead of bullets, you can hard space down (enter) then use indent on the Edit bar. This will preserve numbering at the top level.
Quick followup - This works within a single section, I don't believe it will work across sections.
After the text of your number, press Shift Enter and it will create a blank line. Then insert your image. Press Shift Enter again after the image is inserted. Then press enter by itself to continue the next number in the list. Works at all list levels.
Yeah, but it is not a continuation of the existing list. It is a separate list. I understand what you mean. The issue here is that you have a list and then want to add a picture, note, or other item (which requires a non-numbered paragraph) and then continue with the same list afterwards.
Yes, this is the method we are currently using. However, it is kludgey. It will reformat unexpectedly, etc.
We even fix it directly in the code <>. They need a better solution.
That is correct. It only works within a section. Unfortunately.
I think you can go vote on it, so the fix gets elevated here:
Ann Worley (Atlassian Team) says:
"I haven't found an elegant way to continue numbered lists in columns or after inserting other content. I found that we have a request open to add that functionality to the editor - please vote or comment to emphasize your use case to the development team:
Cloud: Allow the number list to continue in case a different format is inserted between the number list
Server: Allow the number list to continue in case a different format is inserted between the number list"
Daniel's answer is not applicable to anyone using Confluence Cloud.
Complaints for this FAILURE go back more than five years!
YES, it is a FAILURE because numbered bullet continuation is a basic editor function that is missing for both the self-hosted and Cloud versions. I have the cloud version for which there is no known work-around.
To me, this demonstrates that Atlassian doesn't really care about meeting the needs of the people who keep them employed.
FWIW, my company is also a Confluence Cloud customer so we feel your pain on this one. Also, FWIW, @ap filed a bug about Atlassian being way behind the times in this case if you'd like to vent more there. Have a nice weekend!
SHIFT + ENTER is not a solution when you want to include a list with in a list. For example a numbered list of steps and a bulleted list of items needed for one of the steps.
Maybe in the hosted version, but Atlassian restricts just about everything in the web hosted version.
I was confident that there would be a solution for this by now. This is a total pain. Why is this so difficult to resolve?? Everyone needs to update documentation with existing material.
I encountered this issue just now while migrating markdown pages from our old GitLab wiki to Confluence. My process is to convert markdown to HTML (using commonmark) and then import the HTML to Confluence. The HTML has tags like <ol start="2"> and since the start attribute isn't respected by Confluence, the resulting page isn't numbering lists correctly. It would be nice to have direct support for this feature in the markdown.
That this isn't solved yet, in 2019, tells you everything you need to know about Atlassian and how much they care about their terrible product.
The best solution is to find a better product.
Good luck!
I'm also looking for the same, but I believe in vain. Atlassian simply sucks
Found a solution that worked for my case, where Shift-enter did not work to continue bullets 3-4 after applying the Code Style to some text in the 2nd bullet (this was to eliminate implied italics to part of a filename specification that had underscores before/after that middle part of the file specification).
The Code Style inserted a blank line after the code, that was only visible in the Text Tab; the Visual tab of the editor did not display a blank line however it did make bullets 3-4 a second set of 1-2.
Removed the blank line in the Text Tab that preceded the third bullet, and now I have bullets 1-4 with some code between bullets 2 and 3.
Here's what I now have in the Text Tab that worked to make the four pound signs get interpreted as bullets 1-4:
# The first numbered bullet# The second numbered bullet{code:java}Here is some code, using code:java so that surrounding underscores in a file name spec, Node1_Node2_Node3.xml do not get interpreted as wanting italics{code}where Node2 is either BeginOfDay or EndOfDay.# The third numbered bullet.# The fourth numbered bullet.
The W3C markup validator would throw errors like: "The <img> tag is not allowed as child of <ol>."
<img>
So your graphic should be inside the <li/>. Maybe supporting <br> is the better idea.
<li/>
<br>
What about using this macro in the Word document before importing it into Confluence: ActiveDocument.Range.ListFormat.ConvertNumbersToText
After running the macro, I can do a Find&Replace on the bullets, converting them from the Symbol font, which Confluence doesn't seem to recognize.
The only problem I'm now having is that there's no indentation for numbered/lettered list items (and bullets). I wonder how I can tweak the Word macro to add indentation for those items in a way that will translate over to Confluence.
6 years, still waiting...
Can't insert a note or warning into my numbered list without it breaking the ordering. Why?
Exactly.... I get to now do my wiki in word and copy and paste it over all because Atlassian on the confluence side requires you to be a programmer. Instead of being able to quickly move and change our intranet and user manuals I have to be a programmer or handle in a different program. This is SOOO simple, logical and should have been an out of the gate process let alone 6 years and waiting. IT amazes me Atlassian and Trello are related - Trello does everything to be user friendly and nimble - not the wiki in confluence.
I've been reading a couple of these posts and I'm satisfied with using Shift+Enter to do a line break without breaking the numbering. However, I'm also waiting impatiently for a workaround to enable me to continue numbering after a table or a note.
Any ideas? Tables are my real issue right now.
Hi @Claire Campbell
The only way I have been able to successful insert a table within a numbered list without disrupting the numbering is to create the table, leave some blank lines, create the FULL numbered list and then copy and paste the table in front of the number within the list where I want it to appear. Awkward, but it works.
MadCap Flare is a real authoring tool. I just converted from Confluence to Flare.
Thanks. I'll check it out.
Another simple workaround:
- On the numbered list, hit return as you would for the next numbered thing, but instead of text, paste the image after the number
- Hit return again; all lines should be numbered
- Then just put the cursor between the pic and the number to the left and hit backspace
Shift+Enter works but only in some situations.What I usually do is Shift+Enter to create a space to fill in with other thing /widgets, then enter when I want the next numberHowever, this does not work if in that space you want to insert a table (the table is ALWAYS placed under the next numbering and not on the empty space I created.It also doesn't work if you put an info block on that space. In this situation, Confluence turns my next number back into a 1
This works for an image, but we have tables...
? This works for tables (at least for us, we're on Server, v 7.4.1...but pretty sure it worked on earlier versions)
It looks like Atlassian doesn't care about the point. I've been working with Confluence for a few weeks and quickly came across the shortcoming that I can't add any starting number to a list in a table cell.The product, with its numerous hooks and eyes, reminds me of Lotus Notes, which wasn't a bad program at the time, but was hated by users for similar hassle.
I suggest to all that find Confluence a bit limiting - if you are managing a Help system, you might consider moving to an authoring tool such as MadCap Flare.
Last year I converted our product documentation from Confluence to Flare. Flare is a powerful, robust tool that allows you to single-source and generate multiple output types: HTML5, Word, PDF, etc. If you visit the website, make sure you review the Customer Showcase to see what users are doing with Flare.
P.S. Please smack me if this issue hasn't been addressed and we're still using Confluence in 2031.
I noticed that "Divya Sriram, a PM on the Confluence team" added a status update to the top of the aforementioned suggestion that "Solving continuous numbering on numbered lists is on our priority list." Unfortunately, the message is dated 3 Feb 2022, but we've been waiting nearly two decades for a solution so shame on us that we're still using Confluence at this point. 😓
We've given up on this and moved to XWiki and not just for this reason.
Interesting if Atlassian is aware that some customers give up on Atlassian products because they (Atlassian) are ignoring or unable to resolve issues.
I believe there is a better workaround than inserting a line break.
My solution involves inserting an actual paragraph into an <li> element.
I do not know whether this solution works on Cloud. I have only used it on Server.
Let us assume that you wish to include some additional content inside an <li> element. This content might be simply a paragraph, an image, or a macro.
To do so:1. When you are at the end of the line in a list item, press Ctrl+Shift+D. This shortcut opens the Insert markup window. Obviously, you can also open the window from the menu but it takes more time.2. In the Insert markup window, enter any text (for instance, 'asd') and click the Insert button.
Now, the text that you have entered is added as a paragraph which is part of the <li> element. You only need to backspace the random text and replace it with the desired content.
Disclaimer: Once again I emphasise that I have only tested this solution on Server. Thus, if you use Cloud, you need to double-check it there. This is particularly important if you use Confluence to generate output in various formats. In such a case, test the output to see whether the solution works as intended.
It looks like you're new here. Sign in or register to get started.