How to number a list from high to low?

I would like blog post (and other content), where I want to number lists from high to low. So here is an example:

The 7 sins of meeting management:
7. No moderation
6. Starting late and complaining about that.
5. ...

 

I can of course do that manually, but entering then another bullet is a nightmare. Is there a solution available, like a user macro, a plugin that contains that macro, or some other magic?

2 answers

1 accepted

2 votes
Davin Studer Community Champion Feb 13, 2015

A user macro like this should work. Just wrap it around your ordered list. It will show in ascending order in the editor, but in descending when the page is viewed.

 

## @noparams
##############################
## Create a unique id value ##
##############################
#set( $id=$action.dateFormatter.calendar.timeInMillis )
<div id="container$id">
$body
</div>
<script type="text/javascript">
AJS.toInit(function(){
    AJS.$('#container$id ol').each(function(){
        AJS.$(this).attr('reversed','reversed');
    });
});
</script>

After having used that user macro, I like that solution a lot. It is just the functionality I need, the only thing is that I have to remember, that bullets in the edit mode are in the order from least to best. Thank'S a lot, that is pretty nice!!

Hello Markus, there ins't a current option to check that, this might fit into this ticket requesting other items for the same macro. Other than that you should be able to do more with some HTML within the Confluence page - for that there is the HTML macro

Thank's a lot, the JIRA ticket is the right thing to do here. Even if that will need some months / years. I don't want to use native HTML here.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

907 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you