# discussion

Name discussion
Type panel
Version 1.0
Since 2020-01-01

# Prologue

Panel discussion offers basic two level user discussion. It allows users to upload and delete files within their own posts.

# Notifications

New discussion comments automatically notify all step readers about newly created comment. Users can be mentioned in discussion comments via @user.name. Mentioned users are immediately added among current step readers and receive a notification with information about their mention. They will also be notified about every new comment along with rest of the readers.

# Preview

# Configuration

discussion:
	render: {width: 6}
	config:
		# Optional | Default - false
		# Disable writing comments
		readonly: true|false

		# Optional | Default - true
		# Enables/disables emoji reactions to comments
		emoji: true

		# Optional | Default - ASC
		# Sort comments ASC - from oldest or DESC - from newest
		sort: ASC

		# Optional | Default - {}
		# Configure notification
		notification:

			# Optional | Default - true
			# Enables/disables all notifications
			enabled: false

			# Optional | Default - null
			# Change mail subject
			# Full lattenizer support
			# There is special variable available:
			# {$_discussion} with two properties: comment and author
			subject: "New message in process #{$_process->id} from {$_discussion->author->fullname}"

			# Optional | Default - null
			# Append text to mail body
			# Full lattenizer support
			# There is special variable available:
			# {$_discussion} with two properties: comment and author
			detail: """
				Message {$_discussion->comment} was sent by {$_discussion->author->fullname}
			"""

		ui:
			# Optional | Default - null
			# Panel title
			title: 'Discussion'

			# Optional | Default - null
			# Panel description
			description: 'Tell me what you think'

			# Optional | Default - No comments in discussion
			# Displays when discussion is empty
			placeholder: 'No comments in discussion'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51