The CreatorCon Call for Content is officially open! Get started here.

Changing the page layout of Knowledge v3 article page? (Modifying footer)

dhoffman
Tera Contributor

We're on Fuji and Knowledge Management v3.   We'd like to remove the "Authored by [author name]" section from being displayed in the article.

I found a UI Macro called kb_view_common_footer that has a section:

      <div id="articleAuthor" class="snc-article-footer-metadata-published" style="display: block;padding-top: 5px">
    ${gs.getMessage('Authored by {0}', authorName)}
    </div>

I'm thinking that's where it lies; however, I'd like to preserve the out-of-box UI Macro so that it gets automatically upgraded and create a new UI macro with the author information removed from the footer.

The question is:   Where is the "kb_view_common_footer" referred to begin with?   Is the entire article itself a UI Page that itself calls on a bunch of UI Macros with Jelly code?

6 REPLIES 6

dwolf
Giga Expert

Go to Knowledge > Properties (or System Properties > Knowledge) and uncheck "Show author in knowledge search results"


Alternatively, you can go to sys_properties.list and make false "glide.knowman.search.show_author"


dhoffman
Tera Contributor

I have that property set to false.   That's related to showing or hiding the author in the search results.



I think a screenshot communicates this best.   Our question is how to remove the "Authored by ____" section out of the footer on the actual published article view.



Knowledge_v3_author_footer.jpg



So I found the Jelly tag in the UI macro that refers to this footer, and I can modify the code to remove the "Authored by," but if I modify the out-of-box stuff -- as with upgrades -- I don't want it to be skipped, so I'd like a way to copy the UI Macro and preserve the original one.


I was playing around this yesterday in the Sandbox and I created a duplicate of the record and turned the OOB to false. It was working and I wanted to do further testing but needed to work on my real work so I was not able to finish. Sorry. Let me know if you were able to remove it. We are still in the Legacy KB and I plan to migrate it around Aug/September.


To avoid upgrade issues, consider the following approach:


  1. Add 'update_exempt' dictionary attribute to the Dictionary entry that corresponds to the Name column of UI Macro table. This will ensure that renaming a macro will not prevent it from receiving updates. More information about this feature is available here.
  2. Rename the out-of-box 'kb_view_common_footer' macro.
  3. Create a copy of the macro, call it 'kb_view_common_footer' and customize its code as required.