[pmwiki-users] How to return to home
JB
jbit at ev1.net
Mon Sep 4 16:37:32 CDT 2006
> > 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?
> 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);
Would there be a way to do this and return the the
previous viewed menu/page? Perhaps something
like this:
$pagename = ResolvePageName($pagename);
if ($pagename == '$LastViewedGroup.SideBar' && $action=='browse')
Redirect($LastViewedGroup.$LastViewedPage);
?
More information about the pmwiki-users
mailing list