Edit design of Multi-Href


#1

Hello,

is it possible to edit the design of the Multi-Href component inside an Object class?

The default design is rather confusing than helping for our employes.

For example I would like to disable the type and subtype column. Another column like “Art. No.” would be more helpful. The vlaue for this column can be found inside the linked object.

Can I implement this?

Regards,


#2

Hi,
I don’t think there exist option now to hide Type and Subtype. But you can override core multihref.js file with

pimcore.registerNS("pimcore.object.tags.multihref");        
pimcore.object.tags.multihref = Class.create(pimcore.object.tags.multihref, {
    getLayoutEdit: function ($super) {
        var component=$super();

        component.on("afterrender", function () {            
            component.getColumns()[2].hide();
            component.getColumns()[3].hide();                
        }.bind(component));

        return component;
    }, 
});

For additional column I guess you can use multihref advanced.

Regards,


#3

Hi,

that sounds perfect, thank you :slight_smile: