Solved
need to call the expense fragment data in service call.
Hi,
Any one help how to read in experience fragment data into service level.
Thanks,
Mohan
Hi,
Any one help how to read in experience fragment data into service level.
Thanks,
Mohan
Reading an experience fragment from a OSGI service will be the same way as accessing a resource and valueMap from the CRXDE.
Optional<Resource> contentFragmentCarousel = Optional.ofNullable(resolver.getResource("/content/experience-fragments/my-site/offers/latest-offers/master/jcr:content/root/carousel"));
String myCustomPropValue = contentFragmentCarousel
.map(Resource::getValueMap)
.map(e -> e.get("myCustomProp", String.class))
.orElse("defaultText");
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.