There are only a few (5) items displayed with the Favourite Pages Macro in Confluence.
With Edit no parameters can be changed.
How can we change the number of items to be displayed with the Favourite Pages Macro?
Thxs and cheers, Manfred.
you can't change the number of items to display, but you can add your own favorite pages user macro for that purpose:
(if you don't know, how to create a user macro, look at my article for an example)
This example is using code provided by @Davin Studer from the answer: https://community.atlassian.com/t5/Confluence-questions/Can-I-view-all-of-my-favorite-pages/qaq-p/327833
I've changed his example, so you can add a parameter for the number of items to display. And here is the code:
## Developed by: Davin Studer
## Enhanced with parameter NumberOfFavorites by Thomas Schlegel
## Date created: 06/10/2013, Date enhance: 03/08/2017
## @param NumberOfFavorites:title=Number of favorites to show pagecount|type=int|desc=Number of favourite pages to show|default=5
#set( $labelManager = $action.LabelManager )
#set( $favRef = $labelManager.getLabel("my:favourite") )
#set ($Integer = 0)
#set ($paramNumberOfFavorites = $Integer.parseInt($paramNumberOfFavorites))
#set( $favorites = $labelManager.getCurrentContentForLabel( $favRef ) )
#set( $counter = 1)
#if ($favorites.size() > 0)
#foreach( $favorite in $favorites )
#if ( $favorite.getType() == "page" )
#if ($counter <= $paramNumberOfFavorites)
#set ($counter = $counter + 1)
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...
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!
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