Details
-
Improvement
-
Resolution: Fixed
-
Major
-
6.1-milestone-2
-
None
Description
Currently there is no simple way to collect all blocks of a given XDOM
via the getBlocks(BlockMatcher, Axis) from velocity, due to the lack of a way to create/reference BlockMatcher objects.
A converter that converts String into BlockMatcher objects would allow to call e.g. $block.getBlocks("org.xwiki.rendering.block.WordBlock", "DESCENDANT") instead.
Attachments
Issue Links
- blocks
-
XWIKI-10462 Velocity macro error in Syntax Guide when xwiki.section.depth=1
- Closed