This page last changed on May 29, 2011 by pwatson.

You can use the Include Page macro to display the contents of one Confluence page or blog post in another page or blog post.

On this page:

Usage with the Macro Browser

To insert the Include Page macro into a page using the Macro Browser:

  1. In the Confluence editor, choose Insert > Other Macros.
  2. Find and select the required macro.

Usage with the Wiki Markup Editor

Let's assume that 'Sample Include Page' is the title of the page whose contents you want to display. Our sample page is here: Sample Include Page.

What you need to type

What you will get

{include:Sample Include Page}

Start of sample page content

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam fermentum vestibulum est. Cras rhoncus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed quis tortor. Donec non ipsum. Mauris condimentum, odio nec porta tristique, ante neque malesuada massa, in dignissim eros velit at tellus. Donec et risus in ligula eleifend consectetuer. Donec volutpat eleifend augue. Integer gravida sodales leo. Nunc vehicula neque ac erat. Vivamus non nisl. Fusce ac magna. Suspendisse euismod libero eget mauris.

End of sample page content

Parameters

When editing, you can click on the macro placeholder and choose Edit to display the parameters for this macro in the Macro Browser.

Parameters are options that you can set for Confluence macros to control the content or format of the macro output. The table below lists parameters for this macro that can be set in the Macro Browser.

Parameter

Default

Description

Page to Include

None

This is the name of the Confluence page or blog post that you want to include in the current page.

  • If the page or blog post is located in another space, add the space key and a colon in front of the page name. For example, DOC:My page name.
  • To include a blog post, specify the date as well as the title of the blog post. For example: /2010/12/01/My blog post.
  • The space key is case sensitive.
  • You can include pages from personal spaces using ~username as the space key, where 'username' is the person's username. For example, ~jsmith:My page name.

Examples

This example shows how to display the contents of a page located in the same space as the current page, where 'Confluence Overview' is the name of the page you want to display.

{include:Confluence Overview}

In this example, the page is located in another space, where 'DS' is the key of the other space.

{include:DS:Confluence Overview}

This example shows how to display the contents of a blog post located in the same space, where 'Free chocolate in the kitchen' is the name of the blog post you want to display, and the URL of the blog post contains the date '2010/12/01'.

{include:/2010/12/01/Free chocolate in the kitchen}

In this example, the blog post is located in another space, where 'DS' is the key of the other space.

{include:DS:/2010/12/01/Free chocolate in the kitchen}

Notes

  • If you want to include part of a page rather than the whole page, use the Excerpt and Excerpt Include macros.
  • To display a page's contents, you need 'View' permission for that page. Similarly, people who view the page will need 'View' permissions for the embedded page as well as the page into which it is embedded. See space permissions or contact your Confluence space administrator for more information.
  • If someone changes the name of the included page after you have added the macro to your page, the page name does not change automatically in the macro. You will need to change the page name manually in the macro parameters.
  • If you want to embed an external page into a Confluence page, you need the HTML Include macro.
Related Topics

Working with Macros

Take me back to the Confluence User's Guide.

Document generated by Confluence on Sep 19, 2011 02:35