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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,896 views 27 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