How do I see attachments on a Knowledge Article that is not created with the "standard" template, when I search from the main Service Portal homepage (/sp)?

Coop1
Giga Contributor

We are seeing a difference in search results behavior from our Service Portal homepage (/sp) between Knowledge Articles (KAs) created with the 'standard template' and Knowledge Articles (KAs) created with the other templates (Ex. 'FAQ'). The KAs created with the 'standard' template will display an attachment on the search result page (kb_article), but the KAs created with a different template (Ex. FAQ) do not display the attachment on the same search result page (kb_article).

On both KAs, the "Display attachments" box is checked.

Our instance is Madrid.

When I view the kb_article page in the page designer, I see code in the "Body HTML template" section that references when an attachment is found:

----------------------------------------
    <h4 ng-if="data.direct">
      ${View or download the attachments below}
    </h4>
    <div ng-if="::data.showAttachments || data.direct" class="b-t m-t">
      <sp-attachment-manager table="'kb_knowledge'" sys-id="::data.sys_id" omit-edit="true"></sp-attachment-manager>
    </div>
-----------------------------------------

I see the 'spAttachmentManager' in the list of "Widget Angular Providers", so I assume it is loaded and available.

I'm still learning the 'nuts and bolts' of how all this works together, so please forgive my ignorance, if it's 'loud and clear' as to why this is not working as we are expecting.

Thank you in advance.
Cathy

 

A KB Article and attachment, created with the standard template:

find_real_file.png

 

Results of a search from the main Service Portal homepage:

find_real_file.png

(note the attachment is visible)

-------------------------------------

A KB Article and attachment, created with the FAQ template:

find_real_file.png

Results of a search from the main Service Portal homepage:

find_real_file.png

--> No attachment displayed.

 

Both results are returned on "kb_article" . I don't know what the difference is.

3 REPLIES 3

Terri Clayton
Kilo Contributor

Was there an answer to this question , i have the same issue in New York .

My question is:

How do I see attachments on a Knowledge Article that is not created with the "standard" template, when I search from the main Service Portal homepage (/sp)?

DSAnderson
Kilo Contributor

This worked for my instance:

Set the value of the glide.knowman.search.attachment system property to LINK_SNIPPET. You may need to create the system property if it doesn't already exist in your instance.