We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31640
    • 100 Posts
    I was trying to add the jqgrid as a module in the modx manager. I dowloaded the source from the internet (jqGridCrud.zip)
    this is a working example for doing some basic crud operations

    1. In the manager folder, i created a folder called grid, and i have put all the files in that folder.
    2. when i test the following link: http://localhost/playground/manager/grid/ the grid works great!!
    3. Now i create a module to get the grid into the modx manager.
    The module contains: include_once $modx->config[’base_path’] . "manager/grid/index.htm";
    4. When i load the module the .htm file gets loaded but none off the javascript seems loaded. So the screen stays empty.

    What am i doing wrong. Beceause the grid on itselfs works great, only within the manager it doens’t work propertly..

    Please some help or advise
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      I wouldn’t do it that way. I would make a module that contained the code of that index.htm file, making sure to change the paths to the javascript files as necessary. In any case, I imagine that’s your problem... the paths to the javascript in the included index.html file need to be adjusted.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org