Changing the page layout of Knowledge v3 article page? (Modifying footer)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2015 12:39 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2015 05:18 AM
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"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2015 07:34 AM
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2015 08:33 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2015 07:53 AM
To avoid upgrade issues, consider the following approach:
- 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.
- Rename the out-of-box 'kb_view_common_footer' macro.
- Create a copy of the macro, call it 'kb_view_common_footer' and customize its code as required.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/