How to set/change attachment (file) order in kb article?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2023 03:38 AM
I want to update the file attachment order based on the file name in kb article. i.e- Alphabetically but default setting is seems based on the timestamp of attachment.
I want to know from where we can change this setting? or from where we can set file attachment based on the file name (alphabetically).
Please help to understand this configuration.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2023 01:14 PM
Hi Yash,
You can configure this widget by holding CTR, right clicking and clicking "Widget in Editor"
I would suggest making a copy of this widget if you are going to edit it. Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2023 12:51 AM
@mattystern , Thank you for your reply.
I have cloned the widget but still not able to find out the exact code where I need to make changes for attachment order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2023 08:22 AM
Hello,
Did you find any solution for this question?
I have the same problem.
What i have found, that need to modify the Knowledge Attachments widget.
In the client controller part:
function($rootScope, $scope, spUtil, cabrillo) {
/* widget controller */
var c = this;
c.isMobile = spUtil.isMobile() || cabrillo.isNative();
$scope.attachments = $rootScope.attachments;
...this is where need to sort...
}
The new order appeared in the console log, but not in the page...
Thanks,