(Admin) |
m (Text replacement - "{{Doc properties" to "{{Csp class properties") |
||
| (14 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
== Installation == | |||
Grab in instance from https://github.com/WikibaseSolutions/FlexForm. | |||
Create a "'''FlexForm'''" folder in your Wiki extensions folder and extract the files there. | |||
==== Setup ==== | |||
You can tweak '''FlexForm''' to an extent in your Localsettings.php<syntaxhighlight lang="php"> | |||
$wgFlexFormConfig['secure'] = true; //( default is true ). Will render form that make no sense when inspected in the browser | |||
$wgFlexFormConfig['sec_key'] = ""; // A salt key for encryption. Used together with "secure" option. Must be set when using multiple instances of a wiki | |||
$wgFlexFormConfig['auto_save_interval'] = 30000; // defaults to 3 minutes. | |||
$wgFlexFormConfig['auto_save_after_change'] = 3000; // defaults to 3 seconds after last change | |||
$wgFlexFormConfig['auto_save_btn_on'] = 'Autosave on'; // text on the autosave button to toggle on | |||
$wgFlexFormConfig['auto_save_btn_off'] = 'Autosave off'; // text on the autosave button to toggle off | |||
$wgFlexFormConfig['FlexFormDefaultTheme'] = "plain"; // Currently the only form | |||
$wgFlexFormConfig['rc_site_key'] = ""; // reCaptcha site key | |||
$wgFlexFormConfig['rc_secret_key'] = ""; // reCaptcha secret key | |||
$wgFlexFormConfig['file_temp_path'] = ""; // Where to store images temporarily that need to be format converted | |||
</syntaxhighlight> | |||
==== Finally ==== | |||
Add the following line at the end of your LocalSettings.php to enable the extension :<syntaxhighlight lang="php"> | |||
wfLoadExtension( 'FlexForm' ); | |||
</syntaxhighlight> | |||
==== Notification/Messages ==== | |||
'''FlexForm''' has a notification system build in. This is used to show possible errors or success / custom messages. | |||
To enable this.. add to your header page :<syntaxhighlight lang="php"> | |||
<_form showmessages /> | |||
</syntaxhighlight> | |||
| ws-base-props | |||
|---|---|---|---|
| Line 1: | Line 1: | ||
{{Base properties | {{Base properties | ||
|Title= | |Title=Installation of FlexForm | ||
|Class=Doc | |Class=Doc | ||
}} | }} | ||
| ws-class-props | |||
| Line 1: | Line 1: | ||
{{Csp class properties | |||
|Doc subject=DevOps:Doc/FlexForm | |||
|Subject version=1.0 | |||
|Doc parent= | |||
|Doc sort order=1005 | |||
|Doc target group=User | |||
}} | |||
| ws-page-props | |||
| Line 1: | Line 1: | ||
Latest revision as of 10:01, 15 July 2025
Installation
Grab in instance from https://github.com/WikibaseSolutions/FlexForm.
Create a "FlexForm" folder in your Wiki extensions folder and extract the files there.
Setup
You can tweak FlexForm to an extent in your Localsettings.php
$wgFlexFormConfig['secure'] = true; //( default is true ). Will render form that make no sense when inspected in the browser
$wgFlexFormConfig['sec_key'] = ""; // A salt key for encryption. Used together with "secure" option. Must be set when using multiple instances of a wiki
$wgFlexFormConfig['auto_save_interval'] = 30000; // defaults to 3 minutes.
$wgFlexFormConfig['auto_save_after_change'] = 3000; // defaults to 3 seconds after last change
$wgFlexFormConfig['auto_save_btn_on'] = 'Autosave on'; // text on the autosave button to toggle on
$wgFlexFormConfig['auto_save_btn_off'] = 'Autosave off'; // text on the autosave button to toggle off
$wgFlexFormConfig['FlexFormDefaultTheme'] = "plain"; // Currently the only form
$wgFlexFormConfig['rc_site_key'] = ""; // reCaptcha site key
$wgFlexFormConfig['rc_secret_key'] = ""; // reCaptcha secret key
$wgFlexFormConfig['file_temp_path'] = ""; // Where to store images temporarily that need to be format converted
Finally
Add the following line at the end of your LocalSettings.php to enable the extension :
wfLoadExtension( 'FlexForm' );
Notification/Messages
FlexForm has a notification system build in. This is used to show possible errors or success / custom messages.
To enable this.. add to your header page :
<_form showmessages />