Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Image component that randomly pick images from DAM

Avatar

Level 2

Is there a suggested approach to implement an image component that randomly picks one image from a set images from DAM every time the page is displayed? The caveat is that I don't want to have server code to do it: I want the component to behave as a static component, so it can be cached by Dispatcher.

I thought of a client side solution, in which Javascript randomly picks one DAM URL from a predefined set. Is there other approach? A DAM endpoint which does this job?

Thank you.  

1 Reply

Avatar

Level 10

For this use case, you need to use JS logic. There is no ootb component.