From: Timm <ko...@ma...> - 2003-06-20 20:05:53
|
Hello! I am new to this list, though I have been using PhpWiki now for close to = a=20 year (and am very happy with it, especially for using it for shared=20 projects!!) and have read this list's archives from time to time. I have=20 several PhpWikis running on http://massenmensch.de (1.3.3, 1.3.3jeffhacks= ,=20 1.3.4) and fiddled a little with the code, mainly layout stuff (see=20 http://massenmensch.de/wiki/phpwiki-1.3.4 for the latest). MY QUESTION: What I want to do now, is to generate a menu from an database entry (e.g.= the=20 page "MainMenu") which will always be displayed in addition to the page=20 currently shown. Could you give me a hint on what function to call?=20 * Could I call "displayPage" from somewhere an just change "$pagename" to= =20 "MainMenu" in a "$this"-structure? * Or can I add something like the following to "body.tmpl"? <? $CONTENT2 =3D WikiDB::getPage("MainMenu") ?> <?=3D $CONTENT2 ?> For an alternative I could just pass a request to the database independen= tly=20 and RegExp the content into the HTML-code I like, but I hope there is a w= ay I=20 can do it, using the existing routines! I would very much appreciate an answer! Greetings, Timm |