Here an example:"use strict";use(function () { var parent = resource.getParent(); var props = parent.adaptTo(Packages.org.apache.sling.api.resource.ValueMap); return props.get("jcr:createdBy","");});
What I can think of that you use a Java/JS implementation, whereby you pass the numeric value.Then the Java/JS returns an array/list with the correct size, that you can use with data-sly-list/data-sly-repeatHope this helps.