Richtext only processing first merge syntax?

  • 1
  • Problem
  • Updated 3 years ago
This richtext component:


Renders like this in runtime:


Even though the model has this data:


What's going on here?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Since I'm using global merge syntax, I don't have the richtext component tied to a model (not that it should matter).
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Update on this:

The merge syntax is being processed for some models and some rows, but not all. I've got a LOT of models, each of them designed to capture one or two points of data, and I'm using global merge syntax to drop those values into an html template in a richtext component.

There is no data in the models on pageload, but after an action is initiated all the models are quried. I'm subsequently re-rendering the richtext component after the queries with skuid.$C('MyComponentId').render(), just in case.

All the data is in the models, but not all the merge syntax is returning data. It seems that in runtime some of the merges are selectively processed, not others. Doesn't seem to be a pattern that I can figure out.

As mentioned in this related thread, if I test the merge sytnax strings with skuid.utils.merge() in the console, they work!