We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30912
    • 463 Posts
    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
      • 4172
      • 5,888 Posts
      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!
        • 30912
        • 463 Posts
        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.