I have next transformation in repeater
Sorry but i can't insert code here, because it shows wrong.
Is there any posibility to add condition like
{% if (DisplayItemIndex >= 10) {EXIT_FROM_TRANSFORMATION }#%}
before my transformation code
or how can i write condition like
{% if (DisplayItemIndex < 10) {HERE_SHOULD_BE_EXISTING_TRANSFORMATION_CODE}#%}
You can use this code to hide content for any item
{% if (DataItemIndex < 10) { %} <article> ... </article> {% } |(identity)GlobalAdministrator%}
Hi,
if you don't want to render anything why don't you use the "Select top N pages" property of the repeater?
David
Unfortunately this solution is not suitable for me Because i'm tring to write something like lazy load functionality
Hi Vasyl,
There is an excellent article by our community friend Laura Frese.
I am providing you both with link to its webpart and a link about how to implement it
If you are not making use of where clause in your conditional loading then this webpart should be able to solve your problem.
Thanks, Chetan
Please, sign in to be able to submit a new answer.