Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-6330

Allow configuration of AnnotationClass fields wrt. their visibility in various actions/modes.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 2.3
    • Annotations
    • None
    • annotation class fields configuration

    Description

      Currently, a hardcoded list of AnnotationClass fields exists that specifies which fields to ignore from view/edit/create/list modes. Also, for filter mode, only the author is hardcoded to be displayed.

      The proposed patch defines an AnnotationHiddenPropertyClass and expects that the custom/default AnnotationClass XWiki document contains such objects which specify what properties to hide from the current modes in which an annotation can be interracted with: view, edit, create, list, filter.

      The AnnotationCode.Settings page has been modified to use all such annotation properties/fileds for filtering and the AnnotationCode.Macros has been modified to use such properties in the remaining modes.

      This way, anyone that implements a custom AnnotationClass and an IOService can display and manipulate all the defined properties, without having to override existing macros that directly handle the annotations.

      Attachments

        Activity

          People

            lucaa Anca Luca
            enygma Eduard Moraru
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: