Forums

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

Adding the "Page Info" macro to all pages within a space

Mandy Grover
Contributor
June 8, 2018

I've added the following code to my Page Layout for a specific space:

#if ($mode == "view")
<content tag="page-metadata-banner">
#skiplink("page-banner", $i18n.getText("assistive.skiplink.to.banner.start"), $i18n.getText("assistive.skiplink.to.banner.end"))
#webPanelForLocation("atl.page.metadata.banner", {"action": $action})
$helper.renderConfluenceMacro("{page-info:infoType=Create date
}")
#end
</content>
#end

So that the Create date will always be displayed.

However, I keep getting an "unknown macro" error for the Page Info Macro. I have ScriptRunner installed, and this configuration works with other macros -- I tested {children} and {viewtracker} and they worked perfectly.

 

Does anyone know why this particular macro isn't working???

 

Thank you!

1 answer

1 accepted

1 vote
Answer accepted
Victor Mutambuki
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.
June 8, 2018

Mandy,

Page info macro seems to be a 3rd party add-on. if this is the case, you can indicate on the pages or make use of labels.

Is this the macro you're referring to or is there another one.?

Victor

Mandy Grover
Contributor
June 8, 2018

Hi Victor,

Yes, the Page Info macro is 3rd-party (Adaptivist). Does that mean I can't use it with wiki markup or apply it using the code above?

Thanks!

Mandy Grover
Contributor
June 8, 2018

@Victor Mutambuki,

It looks like you can use plugin macros in Page Layout code, so I was able to add a user created macro instead.

Thanks Victor!

Victor Mutambuki
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.
June 8, 2018

Good to hear mandy.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events