This documentation relates to the latest version of Confluence.
If you are using an earlier version, please go to the documentation home page and select the relevant version.

(outdated) Include Page Macro

All Versions
Click for all versions
Confluence 2.9 Documentation

Index

This page is outdated. Please see new page.

Summary

Inserts the contents of the specified page into the current one.

Usage

{include:Some page}

{include:spaceKey=KEY|pageTitle=Another page}

Parameters

Parameter Required Default Description
(default) yes, if no pageTitle parameter none Name of a page in the current space to include
pageTitle yes, if no default parameter none Name of a page to include
spaceKey no current space Key for space which has the page

Notes

Users without permission to view the included page will see an error that the page could not be found.

A page cannot include itself or a page that includes itself. An error message will be displayed if this occurs.

Labels:

macro macro Delete
page page Delete
include include Delete
confluence confluence Delete
inline inline Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Aug 08, 2005

    Anonymous says:

    Very nice macro! Solved a problem I was facing (mirroring pages). But I wonder i...

    Very nice macro! Solved a problem I was facing (mirroring pages). But I wonder if it can be improved such that the attachment etc. therein could be automatically working?

    i.e., if I have a page titled "test" with an attachment "test.xls" in space abc, and its content is simply a link to attachment [display excel|^test.xls]. Now in space def I want to mirror abc:test, I simply create a new page "testmirror" and use the include macro. The problem is, the attachment is missing when viewing "testmirror". One way to solve this is to change the content of "test" to [display excel|abc:test^test.xls], but this is not ideal - when there's a need to rename "test" or move "test" to another space, the link in "test" would break again.

    The more elegant way of handling this would thus be that the include macro processes the included content and add missing spacekey or page title when needed, on-the-fly. That'll solve all problems. I guess the difficulty of implementing it depends on how the macro itself is implemented.

    Mingyi

    1. Feb 12, 2007

      Matt Ryall says:

      The linking of content within the included page was fixed in Confluence 1.4. Ple...

      The linking of content within the included page was fixed in Confluence 1.4. Please raise a bug in JIRA if you find any more problems with this macro.

  2. Nov 17, 2005

    Bob Swift says:

    Are there any plans to open this up to cross space includes? How about including...

    Are there any plans to open this up to cross space includes? How about including content from attachments, templates, files - see the scriptiong macros as examples of where content could be taken from? Of course with the proper handling of permissions.

    1. Feb 12, 2007

      Matt Ryall says:

      Crossspace includes have been available since Confluence 1.4. I've updated the d...

      Cross-space includes have been available since Confluence 1.4. I've updated the documentation above to reflect this.

      Attachment includes are dependent on the kind of content they contain. For Excel spreadsheets we have the Excel macro plugin. For other document types, please raise a feature request so we know what you would like to use.

  3. May 10, 2006

    Maria Kruse says:

    Are there any plans to make it possible to tag sections of pages and include onl...

    Are there any plans to make it possible to tag sections of pages and include only specified sections?

    We use wiki for most of our plans and that feature would make it possible to create a page which includes for example only the resourceplans for each project at one place.

    1. May 10, 2006

      Guy Fraser says:

      You can do that with the Metadata Plugin CONFEXT:Metadata Plugin which essentail...

      You can do that with the Metadata Plugin which essentailly turns Confluence in to a giant spreadsheet

    2. Jun 10, 2006

      Ted Husted says:

      You could use the excerptinclude and excerpt macros to indicate what block of te...

      You could use the excerpt-include and excerpt macros to indicate what block of text to include.

    3. Oct 16, 2006

      Stephanie Trunzo says:

      I am also looking for this function. I don't want to just concatenate data chunk...

      I am also looking for this function. I don't want to just concatenate data chunks though, so I don't think the Metadata plugin works for me. I'd like for each of my writers to create content plans, and then I want to pull pieces of the various plans into anotehr page in the wiki.

  4. Jun 28, 2006

    Madhusudan GR says:

    I have created a page which "includes" 45 other pages. Is it possible to create ...

    I have created a page which "includes" 4-5 other pages. Is it possible to create a view which can display all the pages included alongwith the original page, as a ONE BIG PAGE?

    Thanks in advance

    Madhu

    1. Apr 20, 2007

      Kevin Crosby says:

      I'm not sure how to do this with the include macro, but you can use the reporter...

      I'm not sure how to do this with the include macro, but you can use the reporter macros. I used this handy recipe from Confluence bits.

  5. Oct 09, 2006

    Eva Andreasson says:

    I am in need of the includefunctionality, but for pageID:s, not page titles. Is ...

    I am in need of the include-functionality, but for pageID:s, not page titles. Is this something you will add to the include macro, or is it possible to solve the need for including different versions of a page into another page??

    Most greatful for a quick response...

    /Eva 

    1. Feb 12, 2007

      Matt Ryall says:

      Sorry, Eva, this is not available at the moment. Page IDs would be the easiest w...

      Sorry, Eva, this is not available at the moment. Page IDs would be the easiest way of implementing this, so please raise a feature request on JIRA.

  6. Mar 27, 2007

    Julia says:

    Is it possible to include News/Blog pages? The macro only seems to recognize "re...

    Is it possible to include News/Blog pages? The macro only seems to recognize "regular" Confluence pages.

    1. Mar 27, 2007

      Alex Holtz says:

      Julia, Check out the \ macro for including news items. It has a variety of opti...

      Julia,

      Check out the {blog-posts} macro for including news items. It has a variety of options for filtering/selecting which posts you want and then including them on a page.

  7. Jul 09, 2007

    Mark says:

    The new page link is linked to here:

    The new page link is linked to here:http://confluence.atlassian.com/display/DOC/Include+Page+Macro

    This just shows a JPG image, something is busted 

    1. Jul 10, 2007

      Sarah Maddox says:

      Hi Mark I've looked at the new page you linked in the above comment, and the pa...

      Hi Mark

      I've looked at the new page you linked in the above comment, and the page looks OK to me. Please would you describe the JPG image and which page it's on (i.e. the new page or this outdated page)? Also, which browser are you using?

      Thank you very much – Sarah

  8. Feb 02, 2008

    Anonymous says:

    It would be a nice touch to add a parameter to turn off the error message result...

    It would be a nice touch to add a parameter to turn off the error message resulting from inadequate permissions. Its a really useful feature for building pages which are visible by all but allowing nuances in content for different people. I used it to publish a management report with general activity available to all but comments reserved for more limited viewing - but I still get the error message of course.

    1. Feb 04, 2008

      Ming Giet Chong says:

      Hi, Thanks for the suggestion. I would suggest you to raise a feature request a...

      Hi,

      Thanks for the suggestion. I would suggest you to raise a feature request at the issue tracker:

      Regards,
      MG

Add Comment