Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

User Macro - read text file in _inclusionsLibrary

Raj Chauhan September 14, 2022

Hi all, 

I have many pages which require a new reference number at the top of the page every 4 or 5 weeks (not in the header). Currently each page author has to update this manually.

I'm trying to create a user macro which I can include in every page and then update a single file (in the attachments of one of the spaces) which is then read by the macro and placed on the page.

As an admin, I could update the User Macro like below but I want normal users to be able to update the reference number themselves in another file/text file (attachment within a confluence space) which the macro then reads.

## @noparams
#set($outputHtml="<b>Reference Number</b>")
$outputHtml

I've tried the excerpt include and placing the content in the _inclusionsLibrary, but this does not allow content to be placed in-line with other surrounding text.

Any assistance would be much appreciated. 

Raj

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events