Skip to main content
3 of 4
added 1 character in body

How to dynamically change the component in dxa while rendering the component presentations?

Is it possible to change the component that has to be rendered as a component presentation in java dxa 1.2. For example if an Article component with id tcm:5-100 is inserted on page with Article CT. During the component presentations rendering in delivery, can i replace the existing component with a different Article component with id tcm:5-101 which I have fetched through broker api based on particular metadata field value. If it is possible please guide me with the method that has to be extended/ modified if required.