Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Extending the Faceted Search - Results Template" in Portal 8.2

$
0
0

The "Faceted Search - Results Template" currently uses this template to show data:

    {{#each items}}<li><h3><a title="{{title}}" href="{{url}}">{{title}}</a></h3><p class="fragment">{{{fragment}}}</p><div>{{#each tags}}<span class="{{cssClass}}">{{./label}}</span>{{/each}}</div></li>{{/each}}

I'd like to be able to show other fields from the related item in the display. I worked backwards through the context that the handlebar template was using and found this data at the item level:

    entityID: 9262a5d1-7dd7-e611-80fc-5065f38b4251entityLogicalName: knowledgearticletitle: First Articlefragment: &hellip;&nbsp;<em class="highlight">First</em> Article&nbsp;&hellip;resultNumber: 1score: 1.8315227url: /knowledgebase/article/KA-01000absoluteUrl: ...microsoftcrmportals.com/.../KA-01000tags:entityLogicalNames: knowledgearticlecssClass: label label-primarylabel: Knowledge Base

I have two questions as a result:

1) How do I include additional fields from my articles to display in the handlebar template?

2) What is the "tags' array, and where can I modify/see it? I can pull up the "Tag" entity, but the data here doesn't correspond to any record I can find in the system.

Thanks!


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images