[pmwiki-users] How to return to home
Patrick R. Michaud
pmichaud at pobox.com
Mon Sep 4 16:17:46 CDT 2006
On Mon, Sep 04, 2006 at 03:36:55PM -0500, JB wrote:
> I have a wiki that has only 1 menu.
> When editing the menu and then clicking "save"
> it displays the menu in the page area. How can
> I customize this wiki to instead return to the
> homepage?
Two ways to do it:
1. In local/Site.SideBar.php:
if ($action == 'browse') Redirect($DefaultPage);
2. In local/config.php:
$pagename = ResolvePageName($pagename);
if ($pagename == 'Site.SideBar' && $action=='browse')
Redirect($DefaultPage);
Pm
More information about the pmwiki-users
mailing list