We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40323
    • 1 Posts
    Hi! I need to create a new custom TV. Therefore, I add the INCLUDE, etc, and now is trying to save it. I checked the id is included in the $ row. When I try to create an input that has the name TV + id then it does not show it to me at all.

    Why?

    this is an output but in modx manager it's NULLed
    <input type="text" style="width:100%" onchange="documentDirty=true;" tvtype="text" value="" name="tv33">


    When I try to change it's name to tvblablabla it's showing but of course not saving.
      • 36404
      • 307 Posts
      hi,

      funny... actually, to be simple i use
      name="tv'.$row['id'].'"

      in the $output, this way i let modx take care of the id

      something else, it seems that in text type tv's mods adds an id too
      id="tv'.$row['id'].'"

      not sure it is really necessary but in case...

      have swing
        réfléchir avant d'agir