Wiki source code of Edit Dashboard And Add Velocity Title To Gadget
Last modified by Ilie Andriuta on 2023/01/19 13:29
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | Precondition: The user has Script Right (in order for gadget titles to be rendered and scripts inside gadgets to be executed) | ||
| 2 | |||
| 3 | **NOTE**: Since XWiki 14.10, the Script Right is not granted by default anymore to new users, therefore must be granted manually | ||
| 4 | |||
| 5 | 1. Edit a page (both WebHome and a Terminal page) containing a dashboard in Inline mode | ||
| 6 | 1. Add/edit a gadget | ||
| 7 | 1. Insert a Velocity script in the title field ( for example // ~{~{velocity}} Welcome $xcontext.user ! ~{~{/velocity}}// ) |