Wiki source code of [AUTOMATED] Insert Include Macro with target document author [Since XWiki 14.10.2]
Last modified by Ilie Andriuta on 2024/06/27 16:33
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | 1. Login as Admin | ||
| 2 | 1. Create a page (e.g. P1) containing a velocity macro (e.g. | ||
| 3 | {~{~velocity}~}~ | ||
| 4 | #set($words = ["Some", "velocity", "code"]) | ||
| 5 | #foreach($word in $words) | ||
| 6 | $word ## | ||
| 7 | #end | ||
| 8 | {~{~/velocity}~}~ | ||
| 9 | 1. Login as a regular user (e.g. U1) | ||
| 10 | 1. Edit another page in CKEditor mode | ||
| 11 | 1. Click on "Insert" Button (the "+" icon) | ||
| 12 | 1. Click on "Other Macros" | ||
| 13 | 1. Search for "Include" and click Select | ||
| 14 | 1. In 'Page' drop-down, select the page created by Admin previously (e.g. P1) | ||
| 15 | 1. On 'Author' drop-down, make sure "Auto" is selected | ||
| 16 | 1. Click "Submit" | ||
| 17 | 1. Edit the "Include" macro again | ||
| 18 | 1. On 'Author' drop-down, select "Current" | ||
| 19 | 1. Click "Submit" | ||
| 20 | 1. Edit the "Include" macro again | ||
| 21 | 1. On 'Author' drop-down, select "Target" | ||
| 22 | 1. Click "Submit" |