We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6059
    • 45 Posts
    Hey, i tried to get the TV input field from Manager to output in in a snippet with this

    $data = $modx->getObject('modTemplateVar', 1);
    
    $ausgabe = $data->get('name');
    $rendered = $data->renderInput();


    It renders the TV but i get JS errors because of files i miss i think, but what JS and / or CSS file do i need to add to get it run?
      • 6059
      • 45 Posts
      Ok i get it to run, not perfect but ok.

      I add this to my snippet

        $modx->regClientCSS('/modx_demo2/manager/assets/ext3/resources/css/ext-all-notheme-min.css');
        $modx->regClientCSS('/modx_demo2/manager/templates/default/css/modx-min.css');
        
        $modx->regClientStartupScript('/modx_demo2/manager/assets/ext3/adapter/ext/ext-base.js');
        $modx->regClientStartupScript('/modx_demo2/manager/assets/ext3/ext-all.js');
        $modx->regClientStartupScript('/modx_demo2/manager/assets/modext/build/core/modx-min.js');
        $modx->regClientStartupScript('/modx_demo2/manager/assets/modext/modext-min.js?v=207pl');


      The Input Tags Rendered and Runs fine but i get one error from firebug

      MODx.fireResourceFormChange is not a function
      MODx.fireResourceFormChange(); 


      But what do i need to do to not get this error anymore? And I get no File, Picture or Date Field rendered for Input. Tags, Text, Richtext, Resourcelist, List, Dropdown and more runs perfect.

      Hope someone can help.
      Thx