NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page introduces methods of including the content of a page on another page. If you want two wiki pages to display the same content, consider using an Include page, rather than using an excerpt or mutliexcerpt, because it is easier to keep track of Include pages. The Page Information page for an Include page indicates where it is in use, but it is very difficult to determine where an excerpt or multi-excerpt is in use.

Panel
borderColorblue
borderStylesolid
titleContents

Table of Contents
minLevel2

Tip

Refer also to the Confluence Gadgets demonstration (Confluence page gadget).

Refer also to Finding Where Reused Content Appears.

Include the complete content

Wiki Markup
{scrollbar:icons=false}

...

of a page on another page

To include the text complete content of a page on another page:

...

  1. Choose a location for a new page with the text you want to include. Consider creating a page family just for Include pages. If you want the included content to be visible to all wiki users, then keep this page family also visible to all wiki users. The space root is a good place to create the include page (or the include page family), because

...

  1. it will not interfere with navigation in the space.

...

  1. Create the page with the text you want to include.
  2. Give the page a title that indicates it is included on other pages, for example, by putting the words "To Include" at the end of the title.
  3. Open the page where you want the included text to appear

...

  1. and place your cursor where you want the included text

...

Code Block
{include:spacekey:name of page}

. If the page to be included is in the same space, you do not need the spackey.

  1. to start. 

  2. Add an Include Page macro as described in the following Atlassian help page:

    https://confluence.atlassian.com/conf613/include-page-macro-964960833.html

    Multiexcerpt include
    MultiExcerptNameExitDisclaimer
    nopaneltrue
    PageWithExcerptwikicontent:Exit Disclaimer to Include

Warning

...

Avoid putting a table of contents on a page that is to be included, because the links will not work on the page where the table of contents is included.

...


Example of including the complete content of a page

The the include macro, the caArray Installation Guide has instructions for printing that are on a page in the space root of the caArray2 spacewiki. The markup for the included text is:

Code Block
{include:Instructions for Printing}

The instructions are also included below. The markup is:

instructions are included in the guide and are also included in the example that follows. The space key and page name are entered as caArray2doc:Instructions for Printing.

Example of Included Page

...

Include Page
caArray2doc:Instructions for Printing
caArray2doc:Instructions for Printing

...

Include part of the content of a page on another page

Use the Multiexcerpt macro. Refer to Including an Excerpt from One Page on Another Page.