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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.1-milestone-2
    • Fix Version/s: 6.1-rc-1
    • Component/s: API
    • Labels:
      None
    • Tests:
      Unit
    • Documentation:
      N/A
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: