Hello,
I would like to limit the options for the tags field by replacing the text input with a "superselectbox". I was hoping I could just change /assets/components/articles/js/article/create.js & update.js. Here's what I did...
//inside both create.js and update.js
xtype: 'superboxselect'
,fieldLabel: _('articles.article_tags')
,description: _('articles.article_tags_help')
,name: 'tags'
,id: 'modx-resource-tags'
,anchor: '100%'
,store: [
['Tag 1','Tag 1'],
['Tag 2','Tag 2'],
['Tag 3','Tag 3']
]
,value: config.record.tags || ''
The box displays fine but when I save I only get the last value selected on the next screen. Has anyone else tried to do this? Or is there an easier way to do this?
Thanks!