register a component to a different model depending on value of a field

  • 1
  • Question
  • Updated 2 years ago
I have a rich text component that needs to be registered to one of two different models no pageload depending on the value of a field. What's the best way to accomplish that?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Could you do two separate rich texts and render them based on the field value?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Yes, i could. I'm just hoping to cut down on the maintenance costs...