Can anyone tell me how to do this?
I have a transformer and it is returning the image object as well
public class HippoGalleryImageSetToImageTransformer {
private static Logger log = LoggerFactory.getLogger(HippoGalleryImageSetToImageTransformer.class);
@ContextTransformable
public Image getImage(HstRequestContext context, HippoGalleryImageSet imageSet) {
Image image = new Image();
final HstLinkCreator hstLinkCreator = context.getHstLinkCreator();
final String baseLink = hstLinkCreator.create("/", context.getResolvedMount().getMount()).toUrlForm(context, true);
final String imageLink = hstLinkCreator.create(imageSet, context).toUrlForm(context, true);
image.setUrl(imageLink);
image.setLink(baseLink);
image.setTitle(imageSet.getFileName());
return image;
}
}
But the problem is the Image element “is not part of rss2.0 specification” for an “item” node, only for “channel” node.
Because of that, I have to create my own namespace(“image”) can anyone tell me how to do it? and how and where to create the feed extension? does it require me to host it in CDN?
or is there any alternate solution available?
Thank You in advance for your help.