We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 46557
    • 6 Posts
    I'm looking for a way to import data from one TV and display it in another listbox TV.

    What I have now, is a migx TV that allows to create 'users' (purely visual, not a real user within MODX). Next I would like to have a listbox tv that lists all those created users from the migx TV. That way I can attach an 'user' to a resource and show his/her credentials on the website.

    Is this possible? I've looked around on the forums, but I'm lost on how to import data from one TV to another.

    This question has been answered by Bruno17. See the first response.

    • discuss.answer
      • 4172
      • 5,888 Posts
      Have a listbox - TV 'migx_user' with input-option-values of
      @CHUNK inputoptionsMIGXusers

      and a chunk 'inputoptionsMIGXusers' with:

      --select a user==||
      [[getImageList?
      &docid=`yourDocID` 
      &tvname=`yourMIGXtv`
      &tpl=`@CODE:[[+username]]==[[+MIGX_id]]`
      &outputSeparator=`||`
      ]]


      then to get the user-infos at frontend

      [[getImageList?
      &docid=`yourDocID` 
      &tvname=`yourMIGXtv`
      &tpl=`migxUserTpl`
      &where=`{"MIGX_id":"[[*migx_user]]"}`
      ]]

        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 46557
        • 6 Posts
        Thank you so much Bruno!! Great answer and great solution!