Page properties macro let's you show the like counts of a page. Is it possible to sort also by likes so that pages with most likes are shown on top?
There are no details on what I can sort:
https://confluence.atlassian.com/doc/page-properties-report-macro-186089616.html
For starters, the Sort by property in this macro has a long history of problems. I have never found/figured out a list of what you can natively sort by. The default is modified date. If you check the Show likes count box in the report configuration, the number of likes shows up in the report without a heading.
I did some playing around and it seems that you can put likes in the Sort by field it actually sorts by the number of likes. Did you try this? I created 4 pages, liked 2 of them and played around editing the files to assure myself it wasn't sorting on the modified date. I only have the likes value of not liked (null) and 1 (for myself) to play with but it sorted the 2 liked pages to the top of the report.
An alternative and much more complicated solution might be to write a user macro that would retrieve the number of page likes and then include that macro in a table in a page properties macro with Likes as the table heading. This should correctly display a column titled Likes in the report and hopefully sort correctly by putting Likes in the Sort by property.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah I tried with likes, but this does not seem to work. I have 2 pages with 1 like, whereas the other 8 pages do not have any vote. So the result then is that one page with one vote is on top (that would be ok) but the other one is on position (7). So that does not seem to work properly.
Yeah I know the possibility of writing a user macro, but honestly I would expect that the given macro to offer such a functionality.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.