How to display the document tag using Tag Cloud webpart ?

Aashish Khandelwal asked on March 17, 2015 16:11

Currently the tag cloud webpart is displaying all the webpart belonging to the tag group. I want to display the tags related to a particular document.

Correct Answer

Brenden Kehren answered on March 17, 2015 18:19

You won't use the webpart to do this, you will do it in the transformation. Take a look at this code, should get what you're looking for:

<%# IfEmpty(Eval("DocumentTags"),"","Filed under: " + BlogFunctions.GetDocumentTags(Eval("DocumentTagGroupID"), Eval("DocumentTags"), "~/Blog")) %>
0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.