[AUTOMATED] Insert Code macro with a different source [Since XWiki 14.10.2]
Last modified by Ilie Andriuta on 2024/06/27 16:29
Steps to reproduce
- Create a page with a velocity script, having a name, like:
#set($myvar = "some content to highlight") - Edit the page in CKEditor mode
- Click on 'Insert' Button (the "+" icon)
- Click on 'Other Macros'
- Search for 'Code' and click 'Select'
- On the 'Source' box, insert the name of the previously created velocity script, e.g. "script:myvar"
- Click 'Submit'
or just use in Wiki/Source mode:
{{velocity}}
#set($myvar = "some content to highlight")
{{/velocity}}
{{code source="script:myvar"}}{{/code}}
8. Click 'Save & View'
Expected results
The content of the macro is displayed properly.
Automation Status
Automated
Results
| per page of Previous Page Next Page Page | |||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||
| Previous Page Next Page Page | |||||||||||||||||||||||||||||||||