Hello,
As you are using the sample (which refers to a custom media type named "customworkitem"), I assume:
* You have created a new Media Type (In Business Attributes\Media Type\Attribute Values) for "customworkitem"
* You have added customworkitem in the WDE Options - [interaction-workspace] - openmedia.workitem-channels = customworkitem, ...
2 things to mention on the sample:
* In order to load that module, the Genesyslab.Desktop.Modules.CustomWorkItemSample.module-config file refers to a task/permission named "InteractionWorkspace.CustomWorkItemSample.canUse"
As you may not have defined that custom permission in your system, I would sugget to change that to InteractionWorkspace.WorkItem.canUse during your tests (assuming you have assigned that permission/role to your agent) or even InteractionWorkspace.Voice.canUse (to make sure plugin will load as your agent is probably enabled for voice as well).
* The sample shows 2 ways to define/override the Media/Interaction icons:
- Using the method used in new themes, via Scalar image/VectorIcon
- Using the method from former/legacy themes, via a png
The scalar approach is used in Resources/CustomWorkItemResourcesDefinition85.xml (and the Resources/Theme/CustomWorkItemResourcesDictionary.xaml) using ResourceKey attribute approach.
- In Resources/CustomWorkItemResourcesDefinition85.xml:
<Value Id="Channel.OpenMedia.WorkItem.Image.customworkitem" ResourceKey="Media.CustomWorkItem" />The ResourceKey references Media.CustomWorkItem.
- In Resources/Theme/CustomWorkItemResourcesDictionary.xaml:
Media.CustomWorkItem is defined as a VectorIcon with its scalar data/image.
<Style x:Key="Media.CustomWorkItem" TargetType="{x:Type Path}" BasedOn="{StaticResource VectorIconCustomWorkItem}"> <Setter Property="Data" Value="M 6.53333,13.2L 11.8667,13.2L 11.8667,5.19995L 9.2,5.19995L 9.2,7.86664L 6.53333,7.86664L 6.53333,13.2 Z M 13.2,14.5333L 5.2,14.5333L 5.2,7.19995L 8.2,3.86664L 13.2,3.86664M 9.2,-6.10352e-005C 4.11867,-6.10352e-005 0,4.11865 0,9.19995C 0,14.2813 4.11867,18.4 9.2,18.4C 14.2813,18.4 18.4,14.2813 18.4,9.19995C 18.4,4.11865 14.2813,-6.10352e-005 9.2,-6.10352e-005 Z "/></Style>The png approach is used in Resources/CustomWorkItemResourcesDefinition.xml (using ImageUrl attribute approach).
- In Resources/CustomWorkItemResourcesDefinition.xml:
<Value Id="Channel.OpenMedia.WorkItem.Image.customworkitem" ImageUrl="pack://application:,,,/Genesyslab.Desktop.Modules.CustomWorkItemSample;component/Images/CustomWorkItem.png" />If you check the Genesyslab.Desktop.Modules.CustomWorkItemSample.module-config, you will see that CustomWorkItemResourcesDefinition85.xml is used/associated with the Default Theme (<theme name="Default" >)
So if you have started WDE and you are using Theme - Default, it means the configuration applying is the one CustomWorkItemResourcesDefinition85.xml.
If you want to change the icon, it is done in CustomWorkItemResourcesDictionary.xaml as vector image/data.
If you change theme to Blue/Royale/Fancy, CustomWorkItemResourcesDefinition.xml will then be used - and the png images are then the ones stored in Images folder.
You can also copy/override the <Value....> you want with ImageUrl directly in CustomWorkItemResourceDefinition85.xml (for the Default Them)
You can also find details about Image sizes in new theme, and converting image to vector here:
https://docs.genesys.com/Documentation/IW/latest/Developer/MigrateYourCustomApplication#scrollNav-3As you mentioned instagram media type in your original question, I assume it is clear that in that case:
- You would create a new Media Type (In Business Attributes\Media Type\Attribute Values) for "instagram"
- You would add instagram in the WDE Options - [interaction-workspace] - openmedia.workitem-channels = instagram, ...
- In the WDE plugin, you would use:
<Value Id="Channel.OpenMedia.WorkItem.Image.instagram" ..... />
Hope this helps clarifying.
------------------------------
Jerome St Marc
Genesys - Employees
------------------------------
Original Message:
Sent: 09-30-2019 06:18
From: Hassan Shaikh
Subject: WDE Customization - New Channel icon
Hi Jerome,
I had arleady tried this, for some reason its not working.I am uploading the sample project
There is no error but icon is not appearing.
Code can be downloaded ehre.
Genesyslab.Desktop.Modules.CustomWorkItemSample.rar
| Google Docs |
remove preview |
|
|
REgards
------------------------------
Hassan Shaikh
C Square Consulting PVT Ltd
Original Message:
Sent: 09-28-2019 02:53
From: Jerome St Marc
Subject: WDE Customization - New Channel icon
Hello,
You can check in the Workspace Desktop Edition 8.5 Developer's Guide - in the "Customizing Work Items" section - under "Customizing Workitem Icons" sub-section here: https://docs.genesys.com/Documentation/IW/latest/Developer/CustomizingWorkItems#scrollNav-6
You can define an icon for the Media Channel, for the Interaction. It would probably be also useful to set the Interaction icon in the Interaction History. You can see an example of the values to set for this 3 icons in the developer's guide.
Regards,
JSM
------------------------------
Jerome St Marc
Genesys - Employees
Original Message:
Sent: 09-27-2019 15:50
From: Hassan Shaikh
Subject: WDE Customization - New Channel icon
Hi, We have done customisation of Workspace to handle new interaction such as Instagram, WhatsApp, LinkedIn and YouTube. The functionality is working fine, however, we are not able to add icon of that specific channel.
I want to add icon on "My Channel" as well as the interaction pop-up toast window and case window
#Omni-ChannelDesktop/UserInterface
------------------------------
Hassan Shaikh
C Square Consulting PVT Ltd
------------------------------