If you want to insert a wiki page into another page you use the InsertPage plugin. The following code demonstrates the basic technique. Of course, first you need the page to be inserted; we'll use InsertPageTest.

Inserting an entire page

This
Here, I insert the text of another page:\\
[{InsertPage page=InsertPageTest}]

produces this

Here, I insert the text of another page:

It's not enough to do things right, you must do the right things.
(Please do not delete. This page is used to demonstrate how a page can be inserted into another page, in this case HowToInsertAPage)

Naming conventions

If the name of the page to be inserted has spaces in it, just enclose it in single quotes:

[{InsertPage page='Page with spaces'}]

If the name of the page has a single quote, such as with a possessive like [Writer's Notes] remember to use the name as stored. That is, remember the capital letter such as [WriterSNotes].

Inserting a section of a page

If you want to insert a section of a page into another page use a horizontal ruler (four dashes, '-') to part sections. The page InsertPageTestSections contains three sections that is included below:

This

Here, I insert section 3 of another page:\\
[{InsertPage page=InsertPageTestSections section=3}]

produces this

Here, I insert section 3 of another page:

This is the third section

Inserting a page into itself - Circular reference

Cyclical dependencies are checked for, so inserting a page into itself won't work. If I try to insert this page into itself you get the entire page along with the error message: "Error: Circular - You can't include a page in itself!".

Maintained by TechD

Add new attachment

In order to upload a new attachment to this page, please use the following box to find the file, then click on “Upload”.
« This page (revision-74) was last changed on 20-Feb-2008 18:43 by 24.148.196.110 [RSS]