PITS /
00498: access to edit forms for other actions than 'edit'
Summary: access to edit forms for other actions than 'edit'
Created: 2005-08-27 04:09
Status: Closed
Category: Feature
From: Schlaefer
Assigned:
Priority: 3
Version: 2b44+
OS:
Description: We have several cookbooks BreakPage, SectionEdit which uses the forms on Site.EditForm and have to replace/change in forms.php:
if ($action != 'edit') return;
Maybe we can introduce an global array which an edit handle can subscribe to get access?
You mean besides the $EditFunctions
array?
--Pm
Yes. But Klonk came up with using a second parameter
if ($action == 'edit' && isset($_REQUEST['secondparameter'])) $HandleActions['edit'] = 'MyHandle';
so the action name 'edit' can still be used to bypass the if statement in forms.php. I think this is feasable and we can close this pits entry.
Schlaefer August 30, 2005, at 03:26 PM