Categories Binding according to page/document with transformation

Jack Ryder asked on October 25, 2016 07:48

Hello All, I want to bind Category on to page with the help of repeater and transformation. I have page which have 4 category assigned i want to display that page categories using transformation

Any one help me to do that?

Correct Answer

Jan Hermann answered on October 25, 2016 09:12

By "using transformation" do you mean use transformation to render their properties or render them within some page transformation?

Anyway, here are both options:

1) {% Documents[NodeAliasPath].Categories.ApplyTransformation("custom.type.categorytransformation") %}

2) {% foreach (cat IN Documents[NodeAliasPath].Categories) { cat.DisplayName + ", "; } %}

0 votesVote for this answer Unmark Correct answer

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