Line 3: Line 3:
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
 
$wgFlexFormConfig['secure'] = true;
 
$wgFlexFormConfig['secure'] = true;
</syntaxhighlight>
+
</syntaxhighlight>''As off version 2.2.4 input type="message" also works with the above setting set to false. Although not recommended!''
 +
 
 
===Name===
 
===Name===
 
message
 
message

Revision as of 15:59, 23 January 2024

New since version 2.2!

For messaging to work, you will need to have the following config setting

$wgFlexFormConfig['secure'] = true;

As off version 2.2.4 input type="message" also works with the above setting set to false. Although not recommended!

Name

message

Type

input

Synopsis

Send a notification to another user

Description

This is a FlexForm specific field type. It is not default HTML5.

With this field type you can send notifications to other registered users.

Parameters

type="message"

user="<username>" - This can be a comma separated list of user names to send one message to multiple users.

message="<the message that will show up in the notification>"

message-title="<notification title>" - this is optional

message-type="<either "danger", "warning", "info", "success">" - defaults to danger

Example

  <input type="message" user="wiki user" message="test message" message-title="Admin message" message-type="info" />