This puts a menu on the left hand side of every page. The menu is itself a 'Tavi page, so can be edited like any other page.

Start by creating a page called, in this example, TaviMenu?. Add a vertical list of pages or other references.

Change config.php

Add the following llines above the closing ?>

// Provide a wiki page side menu
$SideMenu = "TaviMenu";

Change action/view.php

Add the following lines above the line that reads $pg = $pagestore->page($page);

  global $SideMenu;
  $menu = $pagestore->page($SideMenu);
  $menu->read();

Add the following line above the line that reads 'html' => parseText($pg->text, $ParseEngine, $page),

     'menu' => parseText($menu->text, $ParseEngine, $SideMenu),

Change template/view.php

Add the following llines above the line that reads <div id='body'>

<div id="leftmenu">
<?php print $args['menu']; ?>
</div>

Change template/wiki.css

Add the following lines

div#leftmenu
  { float: left;
    left: 10px;
    text-align: right;
    margin-bottom: 10px;
    width: 130px; }
div#body
  { right: 10px;
    margin-left: 160px; }
div#footer
  { clear: left;
    margin-top: 10px;
    padding-top: 10px; }

The Result

When you refresh your browser, you should see the contents of TaviMenu? down the left hand side and the contents of the current page on the right.

It should be possible for this to be turned on and off from config.php. The above implementation assumes one always wants to have a side menu.

JohnRankin?

----

Would it make a right menu design if the css was edited to be wider? I guess not, because the menu is consistent across pages, while the right page is unique?

----

It would be nice if the variable $SideMenu were set in Preferences.

----

This adds extra margin to the edit and preferences pages while not displaying the menu. Is there an easy way to remove the margin on "special" pages? --HermannSchwarting

Or perhaps it should display the menu in these views too...

Bug question on this patch use

Q: I guess this patch is uptodate since last change, before me, is from "Fri, 12 Mar 2004 10:20:03", thus using it i got a bug which only display LIB_ErrorDatabaseConnect? what ever page i try to got. (0.25 version)

If any idea about mistake i could have done, please let me know... Hadita

well i commented these line in config.php:

$SideMenu = "TaviMenu";

and recover from this error:

Thus need clues for no-bug insertion...

A: I disabled all changes and i'm currently trying to put a table in common.php... not exactly the most elegant way to do but currently in don't have any other idea... (this idea also doesn't work) thus if you have some, let me know...