The post above was just about nicely displaying YAML files.

Now to your problem.

[code]
actions:
  cancel:
    class: 
info.magnolia.ui.admincentral.dialog.action.CancelDialogActionDefinition
  commit:
    class: 
info.magnolia.ui.admincentral.dialog.action.SaveDialogActionDefinition



form:
  label: Multi value composite field :-)))
  description: Multi value composite field desc. :-)
  tabs:
    - name: tab1
      label: Some fields
      fields:
        - name: events
          class: 
info.magnolia.ui.form.field.definition.MultiValueFieldDefinition
          label: Events
          transformerClass: 
info.magnolia.ui.form.field.transformer.multi.MultiValueSubChildrenNodePropertiesTransformer
          field:
            name: compositeField
            class: 
info.magnolia.ui.form.field.definition.CompositeFieldDefinition
            transformerClass: 
info.magnolia.ui.form.field.transformer.composite.NoOpCompositeTransformer
            fields:
              - name: title
                class: 
info.magnolia.ui.form.field.definition.TextFieldDefinition
                label: Title
              - name: date
                class: 
info.magnolia.ui.form.field.definition.DateFieldDefinition
                label: Date

[/code]

This file will do the job. Note that i've added a few things.

Probably the most important one was on line 21. >> [i]name: compositeField[/i] 
<<
You must add the name property to the field which is a property of 
MultiValueSubChildrenNodePropertiesTransformer. This is not really obvious at 
first sight, however when debugging it becomes clear. 

Hopefully we can simplify handling of the name property in the near future in a 
way that the YAML parser (and other involved classes) become more tolerant.

regards,
 Christoph

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=835039a5-8282-4645-b9e7-52474e81c019


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to