Changes between Initial Version and Version 1 of TracSubPagesMacro


Ignore:
Timestamp:
Aug 11, 2009, 5:30:51 PM (15 years ago)
Author:
Jimmy Theis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracSubPagesMacro

    v1 v1  
     1= Pages Within Pages =
     2
     3== Overview ==
     4
     5!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.
     6
     7== Install !TracSubPages ==
     8
     9 * By hand:
     10   * Download and untar the source directory
     11   * Drop the compiled egg into the plugins directory of your Trac instance
     12   {{{
     13   $ python setup.py bdist_egg
     14   $ cp dist/CustomSelectAdmin<ADDITIONAL-INFO>.egg <PATH-TO-TRAC-INSTANCE>/plugins
     15   }}}
     16 * Globally:
     17   * easy_install the egg so it will apply to all Trac instances
     18     {{{
     19     $ easy_install TracSubPages
     20     }}}
     21
     22Add the following lines to trac.ini (create [components] if it does not exist)
     23
     24{{{
     25[components]
     26TracSubPages.* = enabled
     27}}}
     28
     29or, if you you don't have access to trac.ini but do have the TRAC_ADMIN permission (the Admin panel shows up in the main nav
     30when you're logged in), you can go to the Plugins section within the Admin area and check 'Enabled' next to !CustomSelectAdmin.
     31
     32== Download ==
     33
     34Download the zipped source from [http://pypi.python.org/pypi/TracSubPages/ here].
     35
     36== Usage ==
     37
     38The syntax for the subpage macro is simple:
     39
     40{{{
     41[[subpage(wiki_page[, show_link])]]
     42}}}
     43
     44Where `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).
     45
     46
     47== Author/Contributors ==
     48
     49'''Author:''' [wiki:jetheis Jimmy Theis] [[BR]]
     50'''Contributors:''' claytron