Skip to main content

A Trac macro that displays the bodies of wiki pages inside other wiki pages

Project description

Overview

TracSubPages is a Trac plugin that supplies a macro allowing full wiki pages to be displayed inside of other wiki pages. This is useful if there is a piece of content (such as a contact table or log) that needs to be displayed in multiple places, as it eliminates the need for each instance of this content to be maintained.

Usage

The syntax for the subpage macro is simple:

[[subpage(wiki_page[, show_link])]]

Where wiki_page is the wiki page (No url is needed here, nor ‘wiki/’, just the page). The macro supports pages that aren’t top-level, too (‘BigCategory/SpecificSubject’). The second argument, showlink is an optional argument (true or false) that determines whether or not a link to edit the rendered page will be shown at the bottom of the subpage section (The link reads ‘Edit Section’ and provides a link directly to the edit page of the referenced wiki page).

Limitations

  • A wiki page needs to exist before you link to it with a subpage macro. This may seem obvious, but the error caused by a broken link isn’t very descriptive (yet).

  • Please use only wiki formatting for subpages. The use of macros can (and probably will) cause errors.

Change History

0.2(2009-08-11)

  • Changed macro syntax to not require true/false argument

  • Cleaned up code to better adhere to PEP 8

0.1(2009-08-11)

  • Initial release of plugin

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TracSubPages-0.2.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file TracSubPages-0.2.tar.gz.

File metadata

  • Download URL: TracSubPages-0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for TracSubPages-0.2.tar.gz
Algorithm Hash digest
SHA256 96691409c0d566591a0a07970d2bf4ba833685e14a7adc300853d6931c3c9942
MD5 1d984f30a46e970ddcd3da7875c0781c
BLAKE2b-256 83cfb2f6015905958ce976b0f08fc3debc9f78a2b82daa6a8dde3bba6ccef291

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page