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")) %>
1 votesVote for this answer Unmark Correct answer

Recent Answers


Novice User answered on August 21, 2017 18:15 (last edited on August 21, 2017 18:20)

Hi Brenden Kehren

My webpart take tagid as a query parameter to display all documents related to a tag. How can i change your given transformation to take tagid as a parameter. With your transformation the tagname is the parameter. Can I modify the tranformation. If yes how ?

Thanks

0 votesVote for this answer Mark as a Correct answer

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