Changeset 2864
- Timestamp:
- 03/01/05 10:36:01 (8 years ago)
- File:
-
- 1 edited
-
trac/trunk/wiki-macros/TracNav.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trac/trunk/wiki-macros/TracNav.py
r2863 r2864 9 9 topics. The design of TracNav mimics the design of the TracGuideToc 10 10 that was originally supplied with Trac. The drawback of TracGuideToc 11 is that i sis not customizable without editing its source code and11 is that it is not customizable without editing its source code and 12 12 that it does not support hierarchical ordering. 13 14 15 == Installation == 16 17 To install TracNav, you must place the file {{{TracNav.py}}} somewhere 18 in your {{{wiki-macros/}}} directory of your Trac 19 installation. Additionally, you have to append the following lines to 20 the file {{{htdocs/css/wiki.css}}} that can also be found in your Trac 21 directoryhierarchy. 22 23 {{{ 24 /* Styles for TracNav */ 25 .wiki-toc.trac-nav li { margin: 0; padding: 0; } 26 .wiki-toc.trac-nav li li { margin: 0; padding: 0 1em; } 27 .wiki-toc.trac-nav .edit { border:0; position:absolute; top:0; right:5px; } 28 .wiki-toc.trac-nav .edit a { color:blue; border-color:blue; } 29 }}} 30 31 The lines above define the styles for displaying the navigation 32 bar. These styles build upon the styles for !TracGuideToc that come 33 with your Trac distribution. If you just install the macro but miss to 34 extend the style file, TracNav will work but look somewhat strange. 35 36 37 == Usage == 38 39 To use TracNav, you have to create an index page for your site and 40 call the TracNav macro on each page, where the navigation bar should 41 be displayed. The index page is a regular wiki page. The page with the 42 table of contents must include an unordered list of links that should 43 be displayed in the navigation bar. 44 45 To display the navigation bar on a page, you must call the TracNav 46 macro on that page an pass the name of your table of contents as 47 argument. 48 49 50 == Additional information and a life example == 51 52 Please visit: http://svn.ipd.uka.de/trac/javaparty/wiki/TracNav 13 53 """ 14 54
Note: See TracChangeset
for help on using the changeset viewer.
