[pmwiki-users] newpagebox
Patrick R. Michaud
pmichaud at pobox.com
Tue Sep 6 14:11:54 CDT 2005
On Tue, Sep 06, 2005 at 08:05:31PM +0100, Hans wrote:
> Can the (:newpagebox:) be coaxed to only create pages in the current
> group? So entering for instance SomeGroup/MyPage
> will create a page $Group.MyPage and not SomeGroup.MyPage
In a local customization file:
if ($action=='new')
$_REQUEST['name'] = preg_replace('/^.*[\\/.]/', '', $_REQUEST['name']);
This removes any leading group name from whatever is entered in the
newpage box, thus causing the page to be created relative to the
current group (or the page given by the 'base=' parameter).
Pm
More information about the pmwiki-users
mailing list