How do you render document categories for each document in a transformation?

HelenaG Grulichova asked on September 11, 2012 08:38

How do you render document categories for each document in a transformation?

Correct Answer

HelenaG Grulichova answered on September 11, 2012 08:38

To display document categories for each item/document in a transformation, you need to implement your own function to the transformation and you need to call it with the DocumentID parameter:

DataSet ds = CMS.SiteProvider.CategoryInfoProvider.GetCategories("CategoryID IN (SELECT CategoryID FROM CMS_DocumentCategory WHERE DocumentID = " + docID + ")", null);

Now, you can just return categories from the dataset as a string with your required formatting.

-jh-
0 votesVote for this answer Unmark Correct answer

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