- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2011 06:18 AM
How to dynamically display the field values in kb_view ? How to achieve it through UI Macros or is there any other way ?
Solved! Go to Solution.
- Labels:
-
Knowledge Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2011 07:21 AM
It's Jelly, so you can use j2:if tags to dynamically render things based on criteria. e.g.,
<j2:if test="$[kb.topic == 'email']">
$[kb.u_email_topic_related_field.getDisplayValue()]
</j2:if>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2011 07:21 AM
It's Jelly, so you can use j2:if tags to dynamically render things based on criteria. e.g.,
<j2:if test="$[kb.topic == 'email']">
$[kb.u_email_topic_related_field.getDisplayValue()]
</j2:if>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2011 04:45 AM
Thanks .. It worked 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2011 08:56 AM
I'm hoping someone can help with the issue I'm having. I'm also trying to add fields to dynamically populate. I want to add author and topic owner group. I'm modifying the kb_article_header macro. I added the below code.
${gs.getMessage("Author")}:$[SP]$[kb.author]
It returns Author:eab0ad7a0a0a3c1f01e9a7a151e12fb8
I've changed kb.author to other possibilities but it doesn't return a value. Any ideas as to what I'm missing???

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2011 09:27 AM
It is returning a value, just not the display value for the field. Try this instead...
kb.author.getDisplayValue() or kb.author.name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2011 11:14 AM
Thank you. I entered kb.author.getDisplayValue() and it returned the value I was looking for.