Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-1900

Improve the "Definition decoration" docu

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Neutral
    • None
    • None
    • None
    • None
    • Docu Sprint 74, Docu Sprint 75, Docu Sprint 76
    • 2

    Description

      The Definition decoration docu page is partially incomplete or not 100% clearly understandable (imho) ... and yes, I know, I have written the original version, hence my fault.

      Tasks

      Explain, how a decorator file is

      • merging the original with the decorator
      • completely overridding (parts of) the original by using the !override tag

      Example(s)

      override:

      datasource: !override
        class: info.magnolia.ui.datasource.jcr.JcrDatasourceDefinition
        workspace: contacts
        includeProperties: true
        previewDefinition:
          nodeName: photo
        allowedNodeTypes:
        - mgnl:contact
        - mgnl:folder
        - mgnl:content
        - mgnl:contentNode
      

       

      merge:

      datasource: !override
        class: info.magnolia.ui.datasource.jcr.JcrDatasourceDefinition
        allowedNodeTypes:
        - mgnl:contentNode
      

       

       

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              cmeier Christoph Meier
              cmeier Christoph Meier
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoR