Include another page in current page


This is another version of the IncludeMacro. It takes one mandatory item and two optional positional items. The mandatory item is the page name. The optional items are the class of the generated heading and the class 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.

Example 1

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


Example 2

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 class "headclass" as follows:

[[IncludePages(Foo, headclass)]]

The generated html is then as follows:

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

Example 3

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

[[IncludePages(Foo, headclass, blockclass)]]

The generated html is then as follows:

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

Bugs/Feature Requests

Existing bugs and feature requests for IncludePagesPlugin are here.

If you have any issues, create a new ticket.


0 / 2


0 / 2


1 / 1


Download the zipped source from here.


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


General instructions on installing Trac plugins can be found on the TracPlugins page.

Recent Changes

2910 by Rottenchester on 2007-12-15 19:18:44
Initial import.
2909 by Rottenchester on 2007-12-15 19:18:04
New hack IncludePagesPlugin, created by Rottenchester


Author: Rottenchester
Maintainer: RottenChester

Last modified 10 months ago Last modified on Oct 18, 2016, 8:59:41 PM