« All helpers
Provides a modal dialog to browse for dynamic objects to embed.
Usage:
$this->run ('admin/util/dynamicobjects');
Or anywhere in your view:
{! admin/util/dynamicobjects !}
$.dynamicobjects()
$.dynamicobjects ({ set_value: '#field-id', callback: function (embed_code, handler, params, label) { console.log (embed_code); console.log (handler); console.log (params); console.log (label); } });
Options:
callback
set_value
current
Provides a modal dialog to browse for dynamic objects to embed.
Usage:
1. Load this handler either in your handler:
Or anywhere in your view:
2. Use the
$.dynamicobjects()
function to open the dialog window:Options:
callback
- A function to call with the resulting embed code.set_value
- The selector of an input field to update with the resulting embed code.current
- Current embed code, for updating existing values.