Another specific question.
Following the tutorial "Adding Custom Fields to Manager Forms" from
http://rtfm.modx.com/display/revolution20/Adding+Custom+Fields+to+Manager+Forms one will be able to add a simple html widget to get some input from the user. The process requires to hook in the 3 events of a resource editing: OnDocFormPrerender, OnDocFormRender and OnDocFormSave. And for a html widget like that it works fine. However if one would want to use a more complex widget making use of some java script to render some dom output after page loads, it will not work.
Or at l;east it didn’t work for me.
My approach was to:
- register client startup script on OnDocFormPrerender that on Ext.onReady were loading and try to render a cuustom widget in a container
- add the html content for the upper mentioned container on OnDocFormRender
What I got was nothing because onDocFormRender it is mapped in js and it is executed after Ext.onReady so when my widget init function it is called the html container it is not there yet.
So... is there a MODx js event on which I can hook to init my widgets, instead of Ext.onReady, that will be triggered after MODx.onDocFormRender ?
Thanks.