Skip to content

Use title attribute for asset grid columns #964

@Xirdion

Description

@Xirdion

Pimcore offers the possibility to use a custom controller to create a custom ColumnViewConfig.
We use this feature to provide translations for the metadata fields.
Displaying works perfectly. However, if you select one of these fields and then display it in the Column-View, the internal name of the metadata field is used, not the translated text.

The reason for this is that the "title" attribute of the Field-Layout is not used, but "name" is.

One would have to specify in gridConfigDialog.js that the name is used as column text:

https://github.com/pimcore/admin-ui-classic-bundle/blob/2.x/public/js/pimcore/asset/helpers/gridConfigDialog.js#L224

if (nodeConf.layout) {
    vat text = nodeConf.layout.title
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions