Changes for page User Mentions

Last modified by Vincent Massol on 2024/02/26 17:57

<
From version < 47.2 >
edited by Manuel Leduc
on 2020/05/11 17:12
To version < 48.2 >
edited by Manuel Leduc
on 2020/05/11 17:21
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -36,12 +36,6 @@
36 36  
37 37  Mentions of removed users should still be displayed clearly, it should possibly be identifiable visually that the user has been removed with a strikethrough on the name (which is not easy to identify in the context of AP for instance).
38 38  
39 -
40 -
41 -
42 -
43 -
44 -
45 45  (% class="wikigeneratedid" %)
46 46  [[image:Screenshot from 2020-05-11 14-52-05.png]]
47 47  
... ... @@ -295,19 +295,30 @@
295 295  
296 296  * Macro Id: mention
297 297  * Macro Name: Mention
298 -* Macro description: TBD
292 +* Macro description: Insert a user mention
299 299  * Support inline mode: yes
300 300  * macro visibility: current wiki
301 301  * macro content availability: no content
302 302  
303 303  (% class="wikigeneratedid" %)
304 -The macro has one parameter which has the following properties:
298 +The macro has two parameters which have the following properties:
305 305  
300 +Identifier:
306 306  
307 307  * id: identifier
308 -* description: TBD
303 +* description: The identifier of the mentioned user or group.
309 309  * Mandatory: yes
310 310  
306 +Display choice:
307 +
308 +* id: displayChoice
309 +* description: The display choice of the mention (this is only supported for user mention).
310 +* Mandatory: yes
311 +* Choices:
312 +** First name + last Name
313 +** First name
314 +** User login
315 +
311 311  (% class="wikigeneratedid" %)
312 312  The parameter takes a single fully qualified user or group identifier (e.g., xwiki:XWiki.U1, xwiki:XWiki.MyGroup, [email protected]).
313 313  The identifier is later resolved the a local or external user following a chain of resolvers by calling the components that implements the MentionUserResolver roles, ordered by their priority.
... ... @@ -368,12 +368,6 @@
368 368  
369 369  Note that this count must be realized after resolution of the mentions macro's identifiers, because there might be more than one way to identify the same user.
370 370  
371 -
372 -
373 -
374 -
375 -
376 -
377 377  In practice, triggering a mention is realized by emitting a new event called org.xwiki.bridge.event.MentionCreatedEvent.
378 378  
379 379  On event is created by user. If a mention refers to a group, an event is created for each member of the group.
... ... @@ -397,12 +397,10 @@
397 397  
398 398  A specific template is to be defined for each type of mention.
399 399  
400 -
401 401  === User ===
402 402  
403 403  ==== Document body ====
404 404  
405 -
406 406  You are mentioned by ~_~_USER_NAME~_~_ (+ link to user) on ~_~_DOCUMENT_NAME~_~_. (link to the document view + anchor to the mention).
407 407  
408 408  (citation) ~_~_100 char before and 100 chars after the mentions~_~_
... ... @@ -411,10 +411,6 @@
411 411  
412 412  submit button
413 413  
414 -
415 -
416 -
417 -
418 418  ==== Document comment ====
419 419  
420 420  You are mentioned by ~_~_USER_NAME~_~_ (+ link to user) on ~_~_DOCUMENT_NAME~_~_ comments. (link to the document view + anchor to the comment).
... ... @@ -445,7 +445,6 @@
445 445  
446 446  ==== Document body ====
447 447  
448 -
449 449  The group ~_~_GROUP_NAME~_~_ (+ link to group) is mentioned by ~_~_USER_NAME~_~_ (+ link to user) on ~_~_DOCUMENT_NAME~_~_. (link to the document view + anchor to the mention).
450 450  
451 451  (citation) ~_~_100 char before and 100 chars after the mentions~_~_
... ... @@ -454,10 +454,6 @@
454 454  
455 455  submit button
456 456  
457 -
458 -
459 -
460 -
461 461  ==== Document comment ====
462 462  
463 463  The group ~_~_GROUP_NAME~_~_ (+ link to group) is mentioned by ~_~_USER_NAME~_~_ (+ link to user) on ~_~_DOCUMENT_NAME~_~_ comments. (link to the document view + anchor to the comment).
... ... @@ -488,7 +488,6 @@
488 488  
489 489  See [[https:~~/~~/developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API>>https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API]] .
490 490  
491 -
492 492  Note that the notification cannot be rendered as html, so their body and title must eventually be converted to plain text before being send through this API.
493 493  
494 494  Another important point this the management and activation of the notification user rights.
... ... @@ -500,8 +500,6 @@
500 500  Define how to trigger this popup on firefox
501 501  )))
502 502  
503 -
504 -
505 505  [[image:05-15-54-58-Screenshot-2019-04-01-at-11.00.42-600x247.png_Ima.jpg]]
506 506  
507 507  = Existing discussions =

Get Connected