We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16278
    • 928 Posts
    This is a manually-generated thread for the PubKit E1.0.0 snippet for MODX Evo, now available from the Extras. (Support thread for older version is at https://forums.modx.com/thread/39060/)

    Version E1.0 of PubKit allows for multiple tag TVs, adds the Clone and Move commands, and has more robust handling of TinyMCE initialization. Customization through snippet parameters has been expanded, reducing the need to edit PHP files and create classes for items that only differ in one or two validation rules etc.

    An example of how to use jScript to make simpler and more attractive management pages, and enable multiple operations, is included. Use of FamFam silk icons in place of text links is also demonstrated.

    The installer adds several Modules. The ImportCSV module can be used to import a sample mini-site, which will appear with a resource under your site root as its own home page. The resources demonstrate snippet calls, management pages and a few output pages. The Export and MakeInstall modules, which I used to create the installer package, are included, but not documented.

    Enjoy! wink KP
      • 26931
      • 2,314 Posts
      thanks Keith! smiley
        • 16278
        • 928 Posts
        Update to the snippet code: the lines concerning uploads should have been deleted, as they refer to an older version. The following line should be ignored:
        #    &uploads	  - set if forms include uploads
        

        and the following block is redundant (functions are now included in pubKit.functions.php):
        if (!empty($uploads)) {
        	require_once($snipPath . 'classes/upload.class.inc.php');
        }
        

        The package will be updated along with an example of how to use the upload function in due course.
        :) KP