Main Content

Magnolia Community Forums: Sandbox: Adding YAML files to the forum test


  • cmeier
    cmeier
    Full name: Christoph Meier
    Posts: 212
    Last post: Oct 19, 2017 6:08:59 PM
    Adding YAML files to the forum test
    #1 by cmeier on Jul 23, 2015 5:30:40 PM


    form:
    label: Multi value composite field
    description: Multi value composite field desc.
    tabs:
    - name: tabText
    label: components.textImage.tabText.label
    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

    actions: !include /documentation-examples-templates/dialogs/common/actions-tab.dialog.yaml

  • cmeier
    cmeier
    Full name: Christoph Meier
    Posts: 212
    Last post: Oct 19, 2017 6:08:59 PM
    Re: Adding YAML files to the forum test
    #2 by cmeier on Jul 29, 2015 11:58:59 AM


    weather-info
    └── src
    └── main
    ├── java
    └── resources
    └── weather-info
    └── templates
    ├── components
    └── pages

  • cmeier
    cmeier
    Full name: Christoph Meier
    Posts: 212
    Last post: Oct 19, 2017 6:08:59 PM
    Re: Adding YAML files to the forum test
    #3 by cmeier on Feb 1, 2016 3:56:51 PM

    asd

  • madisonquinn19
    madisonquinn19
    Full name: Madison Quinn
    Posts: 3
    Last post: Jul 4, 2017 10:30:08 AM
    Registered on: Jun 14, 2017
    Re: Adding YAML files to the forum test
    #4 by madisonquinn19 on Jun 14, 2017 12:49:08 PM

    Hello,

    A YAML file is rarely used to describe a simple scalar. Most of the time, it describes a collection. A collection can be a sequence or a mapping of elements. Both sequences and mappings are converted to PHP arrays. YAML file indentation must be done with one or more spaces, but never with tabulators.

    Thanks.

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon https://me.yahoo.com/