Repeater Transformation Macro Question

Jared Gotte asked on August 18, 2015 16:41

I have a Repeater which iterates through pages of a custom page type. In my transformation, if I use {% NodeID %} then it returns the NodeID of each individual custom page type. However, if I use {% DocumentID %} then it continuously returns the DocumentID of the page which houses the repeater. This is counter-intuitive to me.

How do I return the DocumentID of each individual item using a stock macro?

Thanks!

Correct Answer

Brenden Kehren answered on August 18, 2015 17:03

I'm assuming you're using text/xml transformation is this correct? Is your repeater nested or do you have a nested repeater in your transformation? Do you have the DocumentID listed in your column list?

2 votesVote for this answer Unmark Correct answer

Recent Answers


Jared Gotte answered on August 18, 2015 17:47

Adding DocumentID to the column list was the solution. Whoops!

1 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on August 18, 2015 18:33

My guess is since it wasn't there for the rendered items, it returned the current pages document ID then.

0 votesVote for this answer Mark as a Correct answer

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