[pmwiki-users] Skins and Custom Edit Forms
Hans
design at flutesong.fsnet.co.uk
Tue Jul 26 04:47:12 CDT 2005
A skin author can define a custom edit form using $PageEditFmt.
This overrides the usage of Site.EditForm.
We could bundle a skin custom EditForm with the skin and enable it
using in a Skin-Preference page:
# Define a custom edit form.
'Site.EditForm' => 'Site.myskin-EditForm',
This works after enabling the Skin-Preference page in myskin/skin.php with
global $XLLangs, $PageEditForm;
$PageEditForm = '$[Site.EditForm]';
XLPage('myskin', 'Site.myskin-XLPage');
array_splice($XLLangs, -1, 0, array_shift($XLLangs));
But it has the side-effect to enable any user to create their own Edit
Form, which some admins may not want, because it defines the
$PageEditForm via the XL function.
Is there a way to prevent this, or do we need to use $PageEditFmt?
--
Best regards,
Hans
More information about the pmwiki-users
mailing list