On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hi again smiley

    so i'm getting the hang of this now, had great success with the links from my other post.

    But now I need to add files to a page, now i've looked at a few threads and the one i looked (http://forums.modx.com/thread/78468/custom-number-of-custom-tvs#dis-post-432506) at had an input of fileTV but this doesnt seem to work so am i missing something?

    my formtab is:

    [
    {"caption":"Links", "fields":[
        {"field":"fileName","caption":"Name"},
        {"field":"fileURL","caption":"File","inputTV":"fileTV"}
    
    ]}
    ]


    and my gridcolumns:

    [
    {"header": "Name",  "sortable": "false", "dataIndex": "fileName"},
    {"header": "File",  "sortable": "false", "dataIndex": "fileURL"}
    ]


    TIA smiley
    • when using
      "inputTV":"fileTV"
      you need to create a new file - TV , with name: 'fileTV' (no template assigned)

      or just do it this way:

      [
      {"caption":"Links", "fields":[
          {"field":"fileName","caption":"Name"},
          {"field":"fileURL","caption":"File","inputTVtype":"file"}
       
      ]}
      ]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
      • Hi Bruno,

        Thats what i was missing! thanks for your help im starting to love MIGX quite a bit!

        Edit: Im wondering if its worth adding some more stuff like this when you get chance to do the documentation.