Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Sum of all pages

Deleted user April 18, 2017

Hi @all,

we have created a manual with confluence. On the first page we would like to show the sum of all pages.

Eg this manual has 110 pages

How can I display this number?

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2017

You will need a little bit of code to do this.  You should be able to do it in a "user macro" though and I'd use the one in the library - sample code is at https://confluence.atlassian.com/disc/shared-user-macros/count-pages-in-space (may need adjusting for later versions of confluence, but you'll get the idea)

Deleted user April 18, 2017

Thank you for your help. This macro I have already found, however, is pointed out here that this is very performance-heavy and at the last entry someone has written that afterwards its side has not worked anymore.

Deleted user April 18, 2017

ok, i think it works, but only with an parameter. i think this parameter is not the right one (but it works). Do u know what the right parameter is ?

## @param spaceKey:title=Space Key|type=string
$spaceManager.findPageTotal($space)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events