Migx migxDB | direct edit link possible?

Is it possible to get a direct edit link in migxDB when using the config as a CMP?

I use Commerce an Migx togetter, now I can set a edit link in my custom module/product in Commerce. but how do I get the corect link? and then even one that could open like an iframe (I think?) in the Commerce popup?

I don’t think there exists a direct link.

In a MIGXdb CMP, the Ext.js code for the update-window component gets loaded with the CMP-controller. The specific content of the update-window is then loaded with additional AJAX-requests.


Maybe it’s possible to load the Ext.js code for the update-window in a custom plugin and then use the same AJAX-endpoint. But I have never tested it.
It might be easier to implement a custom solution.

Thanks for the info, @halftrainedharry. That makes sense. Since the edit window in MIGXdb relies on Ext.js and AJAX to load inside the CMP, there’s no direct URL to open it. A custom solution might be better because the default setup isn’t designed to work outside the CMP interface.

I did manage to use filters to only show the one item that I want to edit in the grid.

First I created a filter :

filter Name : commerce_product_id
Label : Commerce product ID
Empty Text : Search on ID
Filter Type : textbox
getlist-where: {"commerce_product_id":"[[+commerce_product_id]]"}

rest of the fields are empty or default

Then in the url you can do this:

manager/?a=index&namespace=migx&configs=ConfiguratorProducts&filter_commerce_product_id=5

Notice the extra parameter:

&filter_commerce_product_id=5

&filter_ is the prefix you use to call a filter in the url

Now I only see the one item in the grid, easy to click edit now.