Bruno17 / MIGX

MIGX for revo 2.2 and above
83 stars 78 forks source link

3.0.0-alpha5 - HTML from richtext not parsed in MIGX grid #391

Open deJaya opened 2 years ago

deJaya commented 2 years ago

MIGX richtext fields [with no renderer selected for the column] no longer render with their rich text formatting in the grid columns:

image

Choosing the renderFirst renderer for richtext columns seems to work as a workaround although I'm not sure what that actually does or what other implications there might be from using it.

halftrainedharry commented 1 year ago

I believe this is a problem with MODX 3 (and not with MIGX). There's a similar issue with the Collections extra.


The renderFirst renderer splits the value by the : character and returns the first part.

https://github.com/Bruno17/MIGX/blob/b14c5abdb5503095b18975b391ef2615811c63aa/core/components/migx/configs/grid/grid.renderer.inc.php#L62-L64

So if there is a : in your Event Description, then not all the text is displayed.


To avoid this you could create a custom renderer: