I try to copy a widget instance.
The following function is run from a console script (shell/
), adminhtml Events are initialized.
The problem: What I get from the $orig->getData('page_groups')
differs from the array format Magento uses when submitting the backend edit page for a widget instance (CMS -> Instances).
I will post an answer, but I am happy if somebody finds a better solution.
Best Answer