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

Add attributes to XDOM blocks

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 15.9-rc-1
    • 14.10
    • API
    • None
    • Unit
    • Unknown
    • N/A

    Description

      For different use cases, it is helpful to be able to store attributes on XDOM Blocks. For this, the Block interface should provide methods to get and set them similar to how parameters are handled. This should be implemented in AbstractBlock such that the new properties will be available on all blocks.

      These attributes can be used by macros that collect information about other blocks and want to avoid re-computation. For example, the footnote macro will use this to provide the parsed content and unique ids to several putFootnotes-macros as only the last one of them should display the footnotes.

      Related forum discussion: https://forum.xwiki.org/t/adding-a-generic-internal-attribute-map-to-xdom-blocks/11788

      Attachments

        Issue Links

          Activity

            People

              MichaelHamann Michael Hamann
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: