Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,196
Community Members
 
Community Events
168
Community Groups

User Macro - read text file in _inclusionsLibrary

Edited

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 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Confluence

Watch 4 Confluence apps compete for Best App Demo in September's Appy Hours

Calling all collaborators! Appy Hours on the Atlassian Community is a monthly event where 4 Partner and app vendor presenters go head-to-head with 5-minute demos for the title of Best App Demo. I...

524 views 0 12
Read article

Atlassian Community Events