ESC Portal - Attachments on KB Articles not showing in the Knowledge Attachments widget

nitish99
Tera Guru

Hi All,

When viewing a KB Article (which has attachments) in ESC Portal, the OOB "kb_article" page has "Knowledge Attachments" widget.

While checking the widget, in the Link section, found the below code: 

var options = {
	scope: scope,
	keyboard: true,
	templateUrl: 'kmImageModal',
	windowClass: 'image-modal-dialog'
};

c.openAttachmentsList = function(attachments){
	var options = {
		size:"md",
		scope: scope,
		keyboard: true,
		templateUrl: 'kmAttachmentsWidgetList',
		windowClass: c.isMobile ? 'attachments-list-modal-dialog' : 'attachments-list-modal-dialog kb-desktop'
	};
	c.attachmentsList = attachments;
	c.openModal(options);
}

Usually the templateUrl that are mentioned in the widget, can be found in the Related Lists "Angular ng-templates". But the above two "kmImageModal" and  "kmAttachmentsWidgetList" are not even there in the instance.


Checked in my PDI, which is Yokohoma Patch 5, they are not there as well.

 

Don't want to customize when the feature should be there OOB.

 

Regards,
Nitish

2 REPLIES 2

KrishnaMohan
Giga Sage

Hi @nitish99 
1) When viewing a KB Article (which has attachments) in ESC Portal, the OOB "kb_article" page has "Knowledge Attachments " widget. - even when you click kb_article page is mapping to different page(as shown in screenshot) due to page routing map, article is rendering in kb_article_view page which is also OOTB.

KrishnaMohan_1-1756470212315.png

 


2) did you check display attachments field is true in article form. article/knowledge attachments will display when this field is true.

KrishnaMohan_0-1756470005802.png

 

If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community.

Regards,
Krishnamohan

Hi Krishnamohan,

Thanks for your reply. I already fixed the issue by writing a script to update the "Display attachments" flag.

Regards,
NITIS