Hi,
Is it possible to click add item and have the migx record inserted at the top of the column grid, rather than the bottom?
-
☆ A M B ☆
- 279 Posts
Not as far I know. Because the data is stored as JSON object, it concats to the bottom. You should hack the core of MIGX, or consider developing a custom component
Quote from: g5604 at Sep 18, 2013, 10:13 AMHi,
Is it possible to click add item and have the migx record inserted at the top of the column grid, rather than the bottom?
Not out of the box, but with a little bit of customization and some tricks its possible to modify the order of the items server-side (for example putting a new item at top of all other items) after adding a new record.
Quote from: g5604 at Sep 20, 2013, 03:16 AMI can change the order in the front end by adding the following ot my getImageList call:
&sort=`[{"sortby":"MIGX_id","sortdir":"DESC","sortmode":"numeric"}]`]]
But the migx column grid in the backend is displayed in reverse - not a big deal, but it would be great if you could set where the new row is added in the migx config.
great feature-request:
https://github.com/Bruno17/MIGX/issues
This should be possible now with version 2.5.8
Quote from: Bruno17 at Oct 02, 2013, 01:08 AMThis should be possible now with version 2.5.8
How exactly would I make this work in MIGX?
In the MIGX-Configurator-CMP there is a listbox
'Add new MIGX records at'
with two options (bottom/top)
you need to use the MIGX-configurator to create the configs for the MIGX-TV then.