‎2019 Aug 23 5:15 PM - edited ‎2024 Feb 04 7:06 AM
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
Request clarification before answering.
Hey Andrzej,
You can extend the DefaultMultiReferenceEditor to create your own and override the createReferenceLayout() method. You can create your own ReferenceEditorLayout so that you can get a control over createSelectedItemsListItemRenderer(). You can create your own ListItemRenderer which can render whatever you like it to do. You can also make use of OOTB method to render the most part and just add your custom changes.
You can use Component class method on the ListItem to fetch the required layout item.
Thanks
Pratik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.