Macro to Include Another Page in Current Page

Description

This is another version of the include macro. It takes one mandatory item and two optional positional items. The mandatory item is the page name. The optional items are the ID of the generated heading and the ID of the div surrounding the included page. If the first positional item is missing, no heading will be generated. If the second is missing, no div will be generated.

Bugs/Feature Requests

Existing bugs and feature requests for IncludePagesPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out IncludePagesPlugin from here using Subversion, or browse the source with Trac.

Example

    [[IncludePages(Foo)]]

The contents of page "Foo" will be included in the page when the plugin is expanded.

    [[IncludePages(Foo,headclass)]]

The contents of page "Foo" will be included in the page. The title of the page will be included in a header div with the ID "headclass", as follows:

    <div>
      <div id="headclass">Foo</div>
        { contents of Foo }
    </div>
    [[IncludePages(Foo,headclass,blockclass)]]

Contents of page "Foo" are included in the page with a header div with id headclass, in a div with id blockclass. as follows:

    <div id="blockclass">
       <div id="headclass">Foo</div>
         { contents of Foo }
     </div> 

}}}

Recent Changes

[2910] by Rottenchester on 12/15/07 20:18:44

Initial import.

[2909] by Rottenchester on 12/15/07 20:18:04

New hack IncludePagesPlugin, created by Rottenchester

Author/Contributors

Author: Rottenchester
Contributors: