Hi ,
I am trying to read out set of properties( set of array) from one location and using these value on other location or page.I am using JS : like
use(function(){
var eventList = {};
var resourceResolver = resource.getResourceResolver();
var newNodePath = "/content/dam/locations/images/state/jcr:content/folderThumbnail/jcr:content";
var existingComponentResource = resourceResolver.getResource(newNodePath);
var props = existingComponentResource.getValueMap();
eventList.translationFocus = props["dam:folderThumbnailPaths"];
return {
eventList;
};
});
and I am calling this value on other location
<div data-sly-use.mydata="bannerpath.js">
${mydata.eventList}
</div>
but its not working.Please suggest
Views
Replies
Total Likes
Are you not missing translationFocus?
Views
Replies
Total Likes