Skip to Content
0
Aug 23, 2019 at 04:15 PM

How to show icon using LabelProvider

80 Views

Hello Experts,

I want to show icon next to categories in PCM Backoffice. Can you please advise me how I can achieve it ? I created LabelProvider and implemented getIconPath(), but this method is never called (getLabel() is working fine).

My base configuration :

<context merge-by="type" parent="GenericItem" component="base" type="Category" module="custombackoffice" principal="backofficeproductmanagergroup,backofficeproductadministratorgroup">
        <y:base>
                <y:labels beanId="customCategoryLabelProvider"/>
        </y:base>
</context>

Basing on documentation (base Configuration - documentation) I was trying to configure fallbackToIcon and urlQualifier but it didn't work.

Thanks

Andrzej