P
P
phreze2018-05-15 00:44:31
MODX
phreze, 2018-05-15 00:44:31

Modx. How to add json migx - maxRecords?

There is a large json table (migx modx), for ease of perception I will display several fields of the field:

[
{"caption":"", "fields": [
{"field":"one","caption":"Текст первой колонки"},
{"field":"two","caption":"Текст второй колонки"},
....
{"field":"five","caption":"Текст пятой колонки"}
]}
]

It is necessary that the user in the admin panel, say more than 5 records, could not add. There are no problems on the site, you need to resolve the issue with the admin panel. The sad thing is that to remake all tables under migxdb - well, there is no way now.
Tried to output like this:
[
{"caption":"", "fields": [
{"field":"one","caption":"Текст первой колонки"},
{"field":"two","caption":"Текст второй колонки"},
....
{"field":"five","caption":"Текст второй колонки"}
], "extended":{"maxRecords":"5"}}
]

Doesn't plow. Comrades, please tell me how to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Yashnikov, 2019-04-26
@VyacheslavY

In the MIGX settings you add a configuration in which you specify the number of records in the max MIGX records field , save it, and in the TV settings in the configuration field enter the name of the previously created configuration

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question