C
C
CrystalClear2018-05-24 14:35:52
MODX
CrystalClear, 2018-05-24 14:35:52

How to call Migx inside Migx?

Hello
There is such a task: there is a migx element, inside of which there is a list that needs to be dynamically edited

<div class="col-md-4">
          <div class="serv-items">
            <h3>Економ</h3>
            <i>Що ви отримаєте:</i>
            <ul>
              <li></li>
                                                        <li></li>
            </ul>
          </div>
</div>

I decided to call another mgix with lis inside the list. It looks like this:
<div class="col-md-4">
          <div class="serv-items">
            <h3>Економ</h3>
            <i>Що ви отримаєте:</i>
            <ul>
            
            </ul>
          </div>
</div>

However, when outputting li-niks in place, migx outputs a whole array like this: [{"MIGX_id":"1","title":"Required text"}]
How can I make it so that only text is displayed?
Thanks in advance
if you need more json
[{
"caption": "Item",
"fields": [{
"field": "price_header",
"caption": "Tariff header",
"inputTVtype":"text"
},{
"field": "price_li",
"caption": "List item",
"inputTVtype":"richtext"
},
{
"field": "price",
"inputTVtype":"text"
},{
"field": "prepay",
"caption": "Prepay",
"inputTVtype":"text"
},{
"field": "image",
"caption": "Image ",
"inputTVtype":"image"
}
]
}]
[{
"header": "Tariff header",
"dataIndex": "price_header"
},{
"header": "List item",
"dataIndex": "price_li"
},{
"header": "Price",
"dataIndex": "price"
},{
"header": "How much will we do",
"dataIndex": "duration"
},{
"header": "Prepayment",
"dataIndex": "prepay"
},{
"header": "Image",
"dataIndex": "image"
}
]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Froggyweb, 2018-05-24
@Froggyweb

here https://modx.ru/vopros-answer/info/4102/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question