I have a CMP where I manage my tables from a custom package. Unfortunately I couldn’t get the drag&drop sorting to work. From my research and past experience (all with MODX2 site though I think), this is what I tried so far
I created a field pos with this schema: <field key="pos" dbtype="int" precision="10" phptype="integer" null="true" />
I set these MIGXdb-Settings:
Grid to dragdrop
getlist defaultsort to pos
getlist defaultsortdir to ASC
I’m quite sure this worked in MODX2, but maybe I’m forgetting something? Right now, I simply can’t drag (or drop) any items.
Thank you! It wasn’t working at first, but I noticed that I also had an unique index on the pos field, which seems like this was the problem. After setting unique to false it works now.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.