Changes for page User Mentions

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

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

Summary

Details

Page properties
Content
... ... @@ -36,6 +36,12 @@
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 +
39 39  (% class="wikigeneratedid" %)
40 40  [[image:Screenshot from 2020-05-11 14-52-05.png]]
41 41  
... ... @@ -295,24 +295,13 @@
295 295  * macro content availability: no content
296 296  
297 297  (% class="wikigeneratedid" %)
298 -The macro has two parameters which have the following properties:
304 +The macro has one parameter which has the following properties:
299 299  
300 -Identifier:
301 301  
302 302  * id: identifier
303 303  * description: TBD
304 304  * Mandatory: yes
305 305  
306 -Display choice:
307 -
308 -* id: displayChoice
309 -* description: TBD
310 -* Mandatory: yes
311 -* Choices:
312 -** First name + last Name
313 -** First name
314 -** User login
315 -
316 316  (% class="wikigeneratedid" %)
317 317  The parameter takes a single fully qualified user or group identifier (e.g., xwiki:XWiki.U1, xwiki:XWiki.MyGroup, [email protected]).
318 318  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.
... ... @@ -373,6 +373,12 @@
373 373  
374 374  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.
375 375  
371 +
372 +
373 +
374 +
375 +
376 +
376 376  In practice, triggering a mention is realized by emitting a new event called org.xwiki.bridge.event.MentionCreatedEvent.
377 377  
378 378  On event is created by user. If a mention refers to a group, an event is created for each member of the group.
... ... @@ -396,10 +396,12 @@
396 396  
397 397  A specific template is to be defined for each type of mention.
398 398  
400 +
399 399  === User ===
400 400  
401 401  ==== Document body ====
402 402  
405 +
403 403  You are mentioned by ~_~_USER_NAME~_~_ (+ link to user) on ~_~_DOCUMENT_NAME~_~_. (link to the document view + anchor to the mention).
404 404  
405 405  (citation) ~_~_100 char before and 100 chars after the mentions~_~_
... ... @@ -408,6 +408,10 @@
408 408  
409 409  submit button
410 410  
414 +
415 +
416 +
417 +
411 411  ==== Document comment ====
412 412  
413 413  You are mentioned by ~_~_USER_NAME~_~_ (+ link to user) on ~_~_DOCUMENT_NAME~_~_ comments. (link to the document view + anchor to the comment).
... ... @@ -438,6 +438,7 @@
438 438  
439 439  ==== Document body ====
440 440  
448 +
441 441  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).
442 442  
443 443  (citation) ~_~_100 char before and 100 chars after the mentions~_~_
... ... @@ -446,6 +446,10 @@
446 446  
447 447  submit button
448 448  
457 +
458 +
459 +
460 +
449 449  ==== Document comment ====
450 450  
451 451  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).
... ... @@ -476,6 +476,7 @@
476 476  
477 477  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]] .
478 478  
491 +
479 479  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.
480 480  
481 481  Another important point this the management and activation of the notification user rights.
... ... @@ -487,6 +487,8 @@
487 487  Define how to trigger this popup on firefox
488 488  )))
489 489  
503 +
504 +
490 490  [[image:05-15-54-58-Screenshot-2019-04-01-at-11.00.42-600x247.png_Ima.jpg]]
491 491  
492 492  = Existing discussions =

Get Connected