We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27857
    • 1 Posts
    I’ve managed to create a plugin to display a text field in the Manager form for a page - this was easy using http://rtfm.modx.com/display/revolution20/Adding+Custom+Fields+to+Manager+Forms

    However, now I need to add an image field, and I can find no documentation on how to do this.

    Any ideas? Should I be using a plugin for this? I just need a lot of custom form fields presenated to the user on the Main edit page - these will then be saved to a custom supporting table.

    Help appreciated.
    Kate
      • 28215
      • 4,149 Posts
      What do you mean by ’image’ field? Like a file field? Or one that hooks into the MODx.Browser?

      If the former, just add a ’inputType: "file"’ to your config for the field.

      If the latter:

      {
        xtype: 'modx-combo-browser'
        ,name: 'fieldName'
        ,value: 'myDefaultValue'
        ,hideFiles: true
      }

        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com