Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

In using many panels on a single page is their a way to have an auto sort on the panel title?

I'm listing out an excel by server into a single page that shows some data..  I have over 30 servers so each server is labeled under its own panel with title.  How do you auto sort Panels?   

1 comment

Hi @Ryan Ballas 
I hope you are safe and well.

Confluence doesn't have such a feature out-of-the-box.
However, Confluence gives us many ways to customize appearance on pages.

If your Confluence administrator enabled the HTML macro, you may be able to implement something on JavaScript to sort the Panel macros in your page.

Let's say you have your content organized in page sections and the panel macros are all in the same section, similar to the image below.

test-page.png

 

Then you can add an HTML macro with the following code.

<button id="sortPanelButton">Sort panels</button>
<script type="text/javascript">
$('#sortPanelButton').on('click', function () {
AJS.$('div.panel.conf-macro.output-block').sort(function(a, b) {
if (a.childNodes[0].textContent < b.childNodes[0].textContent) {
return -1;
} else {
return 1;
}
}).appendTo($('#sortPanelButton').parent());
});
</script>

test-page-2.png

 

When viewing the page, the user has the option to click on a button that will sort all the panels in the page, which is applied just for the current view.
Note that the JavaScript code is built on the way that it expects the button and the panels to be on the same layout section.

While this doesn't sort the panels while you are editing, it will help on displaying the information.
Let us know if that helps on your goal.

Kind regards,
Thiago Masutti

Like Ryan Ballas likes this

@Thiago Masutti  Thanks for your comments.  

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Confluence

🥓🙅🏻‍♀️ Meet-less May Badge!

Hello Confluence Community!  What if i told you that you could have a healthier life and be 100% meet-less? This month, we're promoting a healthy, balanced work diet with Confluence. (Read m...

530 views 3 23
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you