|
Re: have a "menu" on all pages?: msg#00081web.wiki.phpwiki.talk
Peter wrote: Hi, On Wednesday, December 17, 2003, at 09:29 am, Norberto Meijome wrote: Hi Peter, Yes templates would be the best approach. Add a line into phpwiki/themes/default/templates/top.tmpl to call your menu template: diff -U2 -r1.25 top.tmpl --- top.tmpl 5 Mar 2003 21:38:15 -0000 1.25 +++ top.tmpl 17 Dec 2003 20:09:13 -0000 @@ -14,4 +14,5 @@ <!-- The top navigation/search bar --> <div class="toolbar"><?= Template('navbar') ?></div> +<div class="toolbar"><?= Template('menu') ?></div> <?php } ?> Then create a new file menu.tmpl, put your html and php in there, something like this: <?php // -*-html-*- $s = $Theme->getButtonSeparator(); ?> <!-- The menu bar --> <?= WikiLink(_("RecentEdits"), "button") ?> <?=$s?><?= WikiLink(_("MyPage"), "button") ?> <?=$s?><?= WikiLink(_("AnotherPage"), "button") ?> <!-- End menu bar --> Carsten ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: have a "menu" on all pages?: 00081, Norberto Meijome |
|---|---|
| Next by Date: | Newbie question: 00081, russ |
| Previous by Thread: | Re: have a "menu" on all pages?i: 00081, Norberto Meijome |
| Next by Thread: | Newbie question: 00081, russ |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |