(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | == New since version 2.2! == | ||
+ | For messaging to work, you will need to have the following config setting | ||
+ | <syntaxhighlight lang="php"> | ||
+ | $wgFlexFormConfig['secure'] = true; | ||
+ | </syntaxhighlight>''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 | ||
+ | |||
+ | New in 2.2.6 : message-confirm="message-confirm" - will add a button to the message. They will need to press the button for the notification to be deleted. If they do not, the message will re-apear with every pageload. | ||
+ | |||
+ | ===Example=== | ||
+ | <syntaxhighlight lang="html"> | ||
+ | <input type="message" user="wiki user" message="test message" message-title="Admin message" message-type="info" message-confirm="message-confirm" /> | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | ===Special Page=== | ||
+ | An admin or sysop can visit the FlexForm Special page and hover over the FlexForm logo on the left top to get a quick menu. From there you can choose Messages. This will take you to the Messages special page, where you can see an overview of all messages waiting to be read or acknowledged. An Admin can delete message from there as well. | ||
ws-class-props | |||
---|---|---|---|
Line 2: | Line 2: | ||
|Subject version=2.1 | |Subject version=2.1 | ||
|Doc subject=DevOps:Doc/FlexForm | |Doc subject=DevOps:Doc/FlexForm | ||
+ | |Doc synopsis=Send a notification to another user | ||
+ | |Doc parent= | ||
+ | |Doc sort order=110 | ||
+ | |Doc target group=User | ||
}} | }} | ||
ws-seo | |||
Line 1: | Line 1: | ||
− | + | {{SEO | |
+ | |Title=FlexForm input type of Message | ||
+ | |Keywords=flexform,mediawiki | ||
+ | |Description=With FlexForm Message field type you can send notifications to other registered users. | ||
+ | |Image=FlexForm logo.png | ||
+ | |Image alt=FlexForm Logo | ||
+ | |Section=Documentation | ||
+ | |Published time=2023-12-01 | ||
+ | }} |
Latest revision as of 09:40, 9 February 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
New in 2.2.6 : message-confirm="message-confirm" - will add a button to the message. They will need to press the button for the notification to be deleted. If they do not, the message will re-apear with every pageload.
Example
<input type="message" user="wiki user" message="test message" message-title="Admin message" message-type="info" message-confirm="message-confirm" />
Special Page
An admin or sysop can visit the FlexForm Special page and hover over the FlexForm logo on the left top to get a quick menu. From there you can choose Messages. This will take you to the Messages special page, where you can see an overview of all messages waiting to be read or acknowledged. An Admin can delete message from there as well.