You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I would like to get a count of the number of pages in a space and place it on a page. I'm guessing writing a macro will accomplish this but I am not sure how to write it. I've looked over all of the documentation, but it hasn't really helped.
On the page itself it would look like: "There are {PageCountMacro} pages in this Space." and rendered it might look like: "There are 8 pages in this Space." if there were 8 pages in that particular space...
Hi Christopher,
I found a similar question in the Community which had lots of answers: How many pages in a space? Some user macros were recommended, including Count pages in space. So you may not have to write your own macro. :)
Thanks,
Ann
Thank you Ann! I've tried $spaceManager.findPageTotal($space) which does return a number. However, it appears to be returning a number that is double the number of pages. Any suggestions?
Update - I tried on a few other spaces, and it is not always double the number, but it is always more... I don't have any pages in the trash, so that shouldn't be an issue.... Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I have just found that if you create an 'index' using the '/index' option, it will give you the number of pages start start with each letter of the alphabet. You can then just knock the total up in calculator
Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Always amazed by the ability of Confluence to make simple operations difficult to do)))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.