I need to resolve Binary Links (Dynamically) from RTF field of a Component. I don't use DWT TBB in my Template and rendering output using C# or Razor TBBs. I place OOB "default finish actions" TBB at the bottom inside Template, which contains OOB "Link Resolver" TBB in it.
With the above setup, the Binary Links from RTF are being rendered as
<tridion:ComponentLink>, but it doesn't serve my purpose. In my understanding, For Binary Links I need to render a server side tag
<tridion:BinaryLink> by templating code. which are then resolved at server side.
So to do that, I am catching the Multimedia Links from RTF in templating code and replacing them with (with required parameters). And it works fine as expected.
My Question is, Is this the right way to replace the links in templating code? Or is there a better or OOB solution for it?