V
V
Vechkov Alexander2019-10-15 17:23:55
CMS
Vechkov Alexander, 2019-10-15 17:23:55

How in one getImageList to deduce at first all fields of one type, and then all fields of other type?

In migx I have several fields - price, time, title. Each new element in migx has these three fields. Those. By clicking add item I have the option to add only one price, name and time.
But I need to display no like this:
price, time, name
price, time, name
price, time, name

And like this:
price, price, price
time, time, time
name, name, name

How to do this?
IMPORTANT!:
If you call getImageList three times specifying one migx and simply insert the required field into tpl (and do not specify other fields), then as I understand it, the site will load harder because instead of once, all data will be loaded three times (if you call one migx getImageList 3 times)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maniiii, 2019-10-17
@maniiii

The easiest and fastest way to do this is with css, take a look at flex.
If you use a hair dryer, then you can use it, or create a snippet and process it through the snippet. MIGX gives data in json, so it will not be difficult to process it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question