Loaded question here. My company just moved to Confluence 6 weeks ago, and I have little programming knowledge. Having spent the last day and a half researching this, I am at my wit's end. Any help you guys can offer is greatly appreciated.
The goal: Have a Pagetree index that lists the title and the number of attachments each page or branch has.
Example: "The Title" (#)
I am having trouble with the following:
public void setTitle(numberOfAttachments) to no avail. Is there a way to do this?
I don't actually know how to count the number of attachments. From another post, a user said that I have to reference attachmentManager and use the following code:
int numberOfAttachments = attachmentManager.getAttachments(page).size(); . The problem is that I don't know how to reference attachmentManager, and all the searching I have done hasn't turned up any info.
Assuming I actually get all of the above, how do I use the variable numberOfAttachments? I understand parameters, but don't really understand variables in XHTML
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
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot