Search the Confluence 4.1.x Documentation:

Index
Downloads (PDF, HTML & XML formats)
Other versions

This documentation relates to Confluence 4.1.x
If you are using an earlier version, please view the previous versions of the Confluence documentation and select the relevant version.
Skip to end of metadata
Go to start of metadata

The Excerpt Include macro is used to display 'excerpted' (that is, a segment of) content from one page in another.

(info) To use this macro, the excerpt must have been defined using the Excerpt macro and both pages must exist in the same space. Note that you can have more than one Excerpt Include macro on a page (although you can have only one Excerpt macro on a page).

The excerpt appears as shown below:

Excerpt Macro
Define a part of a page as the page's 'excerpt' which can then be displayed in another page.

For this example, we are taking content from a page called 'Excerpt Macro', where the Excerpt macro has already been placed. The title of the page is shown at the top of the panel and the content within the body of the macro placeholder is rendered in the panel.

Using the Excerpt Include Macro

To add the Excerpt Include macro to a page:

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

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 Containing the Excerpt

none

Specifies the page that contains the excerpt to be displayed.

Remove Surrounding Panel

false

Controls whether the panel border around the excerpt and the page title should be hidden. By default, the panel is always shown.

Related Topics

Excerpt Macro
Working with Macros

Take me back to the Confluence User's Guide.

Labels:
  1. Jan 29, 2007

    I am trying to take an excerpt from one space page and have that excerpt appear in another space's page.  Is this possible?  I can use an include in this instance and it works, but there are two lines of text I want to leave out in the new space.  Is there any other way to take a mirror image of part of a page and paste it in another space's page without storing this data in two spaces?  Ideally I want to be able to edit this from the orignal space page and have those edits automatically appear in the new space. 

    1. Feb 23, 2007

      I have to agree that I'm really bummed about the same-space limitation. We have a situation where sections of our department are writing their monthly status reports in their own spaces, and our administrative staff would like to have a single page that shows the top "summary" portion of each space's status report all on one page. The excerpt macro would be an obvious way to handle this, except for the same-space limitation. (sad)

      1. Feb 21, 2008

        Anonymous

        Not sure how exactly you are rendering your pages, but theMetadata Plugin plugin may suit your needs.

        1. Apr 08, 2010

          I would also like to see this implemented, its an odd limitation that really seems unnecessary. Is the excerpt include macro source code available? Maybe someone from the community could fix it.

          An issue for this exists, please be sure to vote it up! http://jira.atlassian.com/browse/CONF-11991

  2. Mar 09, 2007

    I have a similar issue. In addition to this, it seems like you can have only 1 macro on one page. If I have 2 macros on the same page (separated by other 'Non-excerpt' content), then only one of these is displayed on the summary page (even when both these pages are on the same space). Has anyone else encountered this?

  3. Mar 22, 2007

    is there a way to have the excerpt text included in the automatic Child Pages list on the Parent page?

  4. Dec 13, 2007

    What plans are there to get an excerpt from a different space?

  5. Dec 13, 2007

    Is it a bug or a feature that the excerpt-include statement does not get updated when the referred page is renamed? (smile)

    1. Dec 13, 2007

      Hi Graham,

      Thanks for reporting this. There is an improvement request currently being tracked at the following:

      The improvement request mentioned that when a referred page is renamed, the {include} and {excerpt-include} macro that refer to that page is broken.

      You may want to cast a vote to the improvement to increase its popularity and also add yourself as a watcher to receive any updates.

      Regards,
      Choy Li

      1. Dec 14, 2007

        you might all save yourself a bunch of work if you make sure, like is done with the third party plugins, that the KNOWN bugs associated with each feature are listed on the bottom of the documentation page related to that features.

        it will:

        • keep customers informed of what works well and what doesn't, which will keep customers happy
        • reduce comments about known bugs
        • encourage customers to look for and report bugs properly rather than by email
        • reduce your workload in answering and redirecting people
  6. Mar 12, 2008

    It would be a neat enhancements if this macro could work by collecting excerpts from pages with a specific label (like the blog-posts macro does). Then people could use the excerpt macro in their labelled templates, and dynamically collect the excerpted info (like Summaries or Definitions) onto a master page without having to manually enter in all the page numbers.

    Should I file an enhancement request for this, or is there one already existing that I can vote for?

    Thanks,

    Carrie

    1. Mar 13, 2008

      Hi Carrie,

      I have found a similar improvement request that is currently being tracked at the following link:

      The improvement request above suggest Confluence to have the ability to allow excerpts when listing content with a particular label. If there are any similarities with your situation, please cast a vote to increase its popularity and add yourself as a watcher for future updates. Also, you can add a comment to the improvement request above to share your concern with the participants within the improvement request. If that is not an option to you, you may want to create an improvement request at our JIRA Issue Tracker to truly reflect your requirement.

      Regards,
      Choy Li

  7. Sep 28, 2009

    Anonymous

    I'm having trouble getting the excerpt macro to work with the table-plus macro. The table-plus renders properly on the page where the excerpt-include is added, but on the source page where excerpt is located the table-plus does not render and just displays wiki-markup for the table. Any thoughts?

    1. May 28, 2010

      Anonymous

      I am having the same issue. Has anyone resolved this?

      Thank you,

  8. Jun 22, 2010

    I really want to be able to include excerpts across spaces. We have one space for UI users and one space for developers, and they share some info. But I cant chunk a page and borrow in from one space to another, so I have to either replicate the page and maintain it in both spaces, or else make the page product neutral, which is hard.  Is there a work around? Seems to me this is a pretty essential feature. 

    Thank you, 

    Emily

    1. Jun 23, 2010

      Hi Emily,

      Have you tried using the Include Page Macro instead? It will render the entire content of the source page, rather than just an excerpt, but that may be enough for your purposes.

      Otherwise, there is an existing improvement request to allow the excerpt macro to work between spaces, feel free to vote and comment on that issue.

      Cheers,
      Mark

      1. Sep 09, 2010

        Anonymous

        Hi Mark,

        I cant just replicate the page because they are for different products and have some different terminology. But I've voted for the feature request.

        Emily

  9. Oct 14, 2010

    It would be extremely helpful to enhance EXCERPT INCLUDE with a parameter to specify named areas on other pages, and then allow EXCERPT INCLUDE to pull in Form Fields from pages created using templates.

    That way, different users could see different aggregated views into the data.

  10. May 07, 2011

    Anonymous

    Would it be possible for the excerpt-include to actually link to the page it is taken from? This way if a user is interested in what they see from the excerpt then they can link through to the page

    Thanks

  11. Jun 15, 2011

    I found the use of 'Excerpt Macro' as the example for the name of the page containing the excerpt a little confusing and had to read the small print.  May I suggest that you use a different excerpt-containing page name example?

  12. Feb 10, 2012

    Hi,

    A number of people have commented on the restriction with include and include-excerpt that inclusions cannot be made from content in another space. I also faced this issue, and with the help of David Peterson and the CustomWare Reporting plugin, found the following work-around:

    You can swap the "> excerpt" part for "> body" to return the whole page if you wish.

    Of course, if you change the page title of the target page, you do need to remember to update the parameters in this macro manually.

    Hope this helps,

    Charles