Page Info Macro displays source page info when nested on other pages with the Include Excerpt macro

I have a created a standard wiki template for a wiki subspace but people (being people) sometimes forget to use it, so I want to be able to copy the template header into those new pages, to maintain at least the semblance of uniformity.

The template header includes "created by" and "modified by" info via the Page Information Macro. I excerpt the template header on the template page but when I include it on another page via the Excerpt Include macro it shows the wrong Page Info (i.e. created-user/date, modified-user/date).

Can I nest these macros together or should I just copy the template header directly into these other pages? If I change the template header in the future, then I'd like to avoid a copy & paste into every page in the wiki subspace that wasn't created using the standard template.

1 answer

1 accepted


The Excerpt macro only shows the content of the other page, so what you describe seems consistent with what I would expect to see.

As for your goal of having pages in a space have the same look and feel, You can edit the default page layout for pages in a specific space.

Navigate to: Space Tools(bottom left when on a page)-->Look and Feel-->Layout-->edit the page layout.

Search for the <div id="main-content" class="wiki-content"> element. Then just above the $body variable we can add some custom content, something like this: 

This adds some meta data to each page in a space.

<div id="main-content" class="wiki-content">
Created by: $page.creator.getName()
Last modified time: $confPage.getLastModificationDate()
Last modified by: $confPage.getLastModifier().getFullName()


This will propagate to all the pages in the space so use with care.


If the answer solves your question, please mark it as accepted so that other people with the same question can benefit from it.

The issue is that I'm not the space admin. I'm just trying to control the look & feel of a sub-space sized area for my team, we also don't want to create more spaces because that just silos information. If I want to enforce a consistent page layout, I guess I'll need to copy & paste the header on to all our pages.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

458 views 3 18
Read article

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you