How can I insert and display another field into the resource editing forms?
Static elements have a layout item for selecting a Media Source.
xtype: 'modx-combo-source'
,fieldLabel: _('static_source')
,description: MODx.expandHelp ? '' : _('static_source_msg')
,name: 'source'
,id: 'modx-chunk-static-source'
,anchor: '100%'
,maxLength: 255
,value: config.record.source != null ? config.record.source : MODx.config.default_media_source
,hidden: !config.record['static']
,hideMode: 'offsets'
,baseParams: {
action: 'getList'
,showNone: true
,streamsOnly: true
}
I'm attempting to insert this item into the Static Resource panel widget. I can in fact insert it, and it is in the source (as viewed with Firebug) but it does not display in the browser.
Files involved:
manager/assets/modext/widgets/element/modx.panel.chunk.js - around line 166
manager/assets/modext/widgets/resource/modx.panel.resource.static.js - around line 35