Subscription & Notification Preferences Widget - Changing Knowledge Article Display Field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2019 09:40 AM
Hello!
Need assistance on the Subscription & Notification Preference OOB widget. We are wanting to change the Knowledge Article display name to the KB article's short description. Can anyone tell me where and how to accomplish this?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2019 05:19 AM
The value displayed in the widget corresponds to the Display value defined for the table from which it is showing the records. In this case it is displaying knowledge articles, for which (if you're not using specific article templates) the display value can be modified in the dictionary of the kb_knowledge table. If you're using article templates, then the same has to be done on each of those individual tables.
If you need more control over the behavior (or appearance), there is also an angular template related to the widget called "actsub_subs_compact", although it might be a bit tricky to ensure that it works reliably for all kinds of records (as the list of subscribable objects can be extended). By default, the template is calling the "getProcessedDisplaySubName()" method from the widget controller, which in turn is receiving the display value (property "sub_obj_display_value") from a script include called "SubscriptionDAO" (line 573):
subscription.sub_obj_display_value = gr.sub_obj_id.getDisplayValue();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2019 12:52 PM
Thank you so much! This solution worked to the "t."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2020 12:20 PM
Hi Jennifer,
Could you please describe the exact steps you took to make this fix? Did you end up having to clone the widget?