Get Changes Macro
Last modified by Vincent Massol on 2026/09/02 19:04
Example usage
{{getChanges products="XWiki" versions="8.3%" audience="User" contextVariable="changeDocs"/}} {{velocity}} #foreach ($changeDoc in $changeDocs) * $changeDoc #end {{/velocity}}
Result
- ReleaseNotes.Data.XWiki.8\.3M1.Change001.WebHome
- ReleaseNotes.Data.XWiki.8\.3M1.Change002.WebHome
- ReleaseNotes.Data.XWiki.8\.3M1.Change003.WebHome
- ReleaseNotes.Data.XWiki.8\.3M1.Change004.WebHome
- ReleaseNotes.Data.XWiki.8\.3M1.Change007.WebHome
- ReleaseNotes.Data.XWiki.8\.3M2.Change007.WebHome
- ReleaseNotes.Data.XWiki.8\.3RC1.Change001.WebHome
- ReleaseNotes.Data.XWiki.8\.3.Change002.WebHome
- ReleaseNotes.Data.XWiki.8\.3M1.Change006.WebHome
- ReleaseNotes.Data.XWiki.8\.3M1.Change008.WebHome
- ReleaseNotes.Data.XWiki.8\.3M1.Change013.WebHome
- ReleaseNotes.Data.XWiki.8\.3M2.Change002.WebHome
- ReleaseNotes.Data.XWiki.8\.3RC1.Change007.WebHome
Paging
The macro collects at most limit changes, starting at offset, so that a filter matching thousands of changes
cannot turn one page view into thousands of document loads. Whether it had more changes to collect is published
beside them, in the context variable named after contextVariable suffixed with HasMore:
{{getChanges products="XWiki" limit="20" offset="20" contextVariable="changeDocs"/}} {{velocity}} #if ($changeDocsHasMore) There are more changes to display. #end {{/velocity}}