C
C
Cheizer2018-02-06 23:57:06
CMS
Cheizer, 2018-02-06 23:57:06

MODX REVO how to display a render like this.renderChunk in MIGX in the admin panel?

Friends, I can't figure out how to display a photo, a photo of an embedded MIGX in the column layouts for the MIGX component? busy people do. And it seems like it’s not difficult, BUT no one explains how to do it properly.
Here's how the person did it and how I want to repeat it:
5a7a14b256586747542563.png
His additional drawings are an embedded MIGX TV. On the site, I figured out how to use and display nested MIGX fields for a long time, but in the admin panel I still can’t do it.
So far I have this, MIGX tv TEST, I add additional pictures in it through the nested MIGX value-photo as usual
5a7a1505071e5140931181.jpeg
MIGX tv TEST content. I write this in the form tabs, where value-photo is MIGX tv, also for additional pictures that should be displayed in the layout of the columns in the admin panel.

[
{"caption":"Информация", "fields": [
{"field":"colorName","caption":"НАЗВАНИЕ ЦВЕТА"},
{"field":"valuePhoto","caption":"ДОП ФОТО","inputTV":"value-photo"}
]}
]

And for the column layout it is:
[
{"header": "ЦВЕТ ПРОДУКТА", "width": "260", "sortable": "true", "dataIndex": "colorName"},
{"header": "РИСУНОК","dataIndex": "valuePhoto","renderer": "this.renderChunk","renderchunktpl":"test"}
]

In the test chunk I output BUT the history doesn't reach him.
It's all about this.renderChunk, it works, and it renders the drawings correctly, BUT IT DOES NOT RENDER AS IT IS SUPPOSED, but it outputs a list of JSON format, here:
5a7a1638771af574494865.jpeg
So I'm stuck here, tell me where to dig? What's wrong? It seems like on the English forums they write that it is necessary to create this through the configurator, but I hope this is not so. PAMAGITIII! :(

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question