We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41394
    • 1 Posts
    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!
      • 44329
      • 1 Posts
      Did you have any luck with this? I am wrestling with the same issue myself right now.