Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-349

Add Converter for BlockMatcher to be able to use block.getBlock(BlockMatcher, Axes) from velocity

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 6.1-rc-1
    • 6.1-milestone-2
    • API
    • None
    • Unit
    • N/A

    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

          Activity

            People

              camil7 Clemens Robbenhaar
              camil7 Clemens Robbenhaar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: