Skip to content

multiple localizable fields in customEntity #197

Description

@jotalops

in akeneo 1.7 this can be possible, but I can't with 2.3.

I achieve to show the two fields, but when the form is submitted, the items are not in the correct fields

this is my edit-form

## translation section1
pim-market-edit-form-properties-translation-section:
    module: pim/common/simple-view
    parent: pim-market-edit-form-properties
    targetZone: accordion
    position: 200
    config:
        template: pim/template/form/tab/section
        templateParams:
            sectionTitle: pim_custom_entity.form.tab.properties.section.description_translations
            dropZone: content

#field1
pim-market-edit-form-properties-translation-label:
    module: pim/common/properties/translation
    parent: pim-market-edit-form-properties-translation-section
    targetZone: content
    position: 210
    config:
        fieldBaseId: 'pim_enrich_group_form_label_'
        label: 'logunga'


##translation section2
pim-market-edit-form-properties-translation-section-description:
    module: pim/common/simple-view
    parent: pim-market-edit-form-properties
    targetZone: accordion
    position: 220
    config:
        template: pim/template/form/tab/section
        templateParams:
            sectionTitle: pim_custom_entity.form.tab.properties.section.test_translations
            dropZone: content

# field2
pim-market-edit-form-properties-translation-description:
    module: pim/common/properties/translation
    parent: pim-market-edit-form-properties-translation-section-description
    targetZone: content
    position: 230
    config:
        fieldBaseId: 'pim_enrich_group_form_description_'
        label: 'logunga2'

a post example ( descriptions is null but also have a value)

{"id":1,"code":"09.01","currency":"eur","locales":"cz,sk,en,us","mdmMarket":null,"webBaseUrl":"www.meneame.net","labels":{"en_US":"456"},"descriptions":{"en_US":null},"brand":{"id":2,"code":"01","name":"ROCA"}}


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions