SuperBoxSelect with selectType=customtable in MIGX? (ModX3.1.2)

Is SuperBoxSelect supposed to work in a MIGX TV?
I can’t get it to work.

Directly in a TV it works fine.

But in a MIGX tv (inputTVtype=superboxselect) with the configs json below it doesn’t. It shows a resources-list instead.

{"selectType":"customtable","packageName":"","className":"GlanzlichtTags\Model\Tags","selectedFields":"title,id","maxElements":"0","fieldTpl":"{title}","stackItems":"0","allowBlank":"1","pageSize":"25","sortBy":"title","sortDir":"ASC"}

And when I say inputTV=myWorkingSuperboxselectTV the selection list just stays empty.

Anything that I am missing here or is this just not supported?

Thanks in advance for help if available.

ModX v 3.1.2-pl, SuperBoxSelect also v 3.1.2

d~

I think the problem is the types/customtable/getlist processor.

The processor reads the ID of the TV from the request parameter “tvid”

and then uses this value to query the “Input Options” (“Class Name”, “Selected Fields”) from the TV (on line 33).

But when SuperBoxSelect is used inside of MIGX, the request parameter “tvid” has a random/auto-generated value.


My guess is that the code of the types/customtable/getlist processor has to be changed to make it work. The request parameters “className” and “selectedFields” should be used directly, if no TV with the value from “tvid” can be found.

Thank you very much @halftrainedharry! You really know your way around the modx code! I solved this particular problem by circumventing the usage inside migx but this will definately be a usecase in the future and your hint will help me to start somewhere. Or maybe it is already fixed by then.

best regards!

Maybe open an issue about this on Github, so the author knows that the problem exists: