Skip to main content
4 of 4
added 16 characters in body
Velmurugan
  • 8.2k
  • 2
  • 15
  • 27

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 the 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.