wiki:IncludePagesPlugin

Include another page in current page

Description

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:

[[IncludePages(Foo)]]

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>
   <div class="headclass">Foo</div>
     { contents of Foo }
</div>

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 }
</div> 

Bugs/Feature Requests

Existing bugs and feature requests for IncludePagesPlugin are here.

If you have any issues, create a new ticket.

defect

0 / 2

enhancement

0 / 2

task

1 / 1

Download

Download the zipped source from here.

Source

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

Installation

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
(more)

Author/Contributors

Author: Rottenchester
Maintainer: RottenChester
Contributors:

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