We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    Have Rewritten this usefull module for me and for everbody, who wants to use, test and modify it.

    /*
    module:fast_content_csv
    Rewritten by Bruno [email protected]
    First Release by SamZ [email protected]
    v.09.2
    Module to import/export data from csv files and edit many docs at once
    Warning:
    Use it only when you know what you are doing!
    Make Backup before use!
    You can run it in Testmode first to see a report what would happen.

    Installation:
    1. Upload all the files to /assets/..........
    2. Save this code as a new module with name fast_content_csv
    3. Create new plugin with name fast_content_csv, check the event OnManagerPageInit
    Usage:
    See Tutorials

    ##################################
    changelog:
    Release v09.2 24.01.2009 by Bruno
    New Features:
    make it possible to export/edit all child-documents in all levels under a startparent
    added phx-modifier childIds which returns all childIds of the placeholder-value
    added phx-modifier options which returns the options as output to work with it in the next modifier
    #
    Release v09.1 27.11.2008 by Bruno
    New Features:
    make it possible to edit many documents at once directly in the manager
    BugFixing:
    duplicating exisiting TVs on updating - fixed
    #
    Release v09 06.11.2008 by Bruno
    New Features:
    configfile to save different workspaces/actions and document-bindings for the plugin
    plugin for easy import/export in combination with the document-tree and document-bindings
    introduced new placeholder-tags for PHx-work [#t#...#t#],[#s#...#s#],[#d#...#d#],[#r#...#r#]
    PHx-replacment in document-bindings-field
    changed:
    removed the checkboxes 'replace placeholder', because we let now all modx-tags untouched
    complete workflow changes
    removed default-files, all datas now in one config-file for each source-file
    Tutorials updated to the complete changed workflow
    #
    Release v08 21.10.2008 by Bruno
    New Features:
    update/insert(if not found)
    checkbox for to multiply the csv-row to all matching parents on inserting
    multiply the csv-row to all matching parents on inserting
    multiply existing documents which match to source and/or default to all matching parents
    document-export the checked or all document/TV-fields which match to source and/or to default.csv
    checkbox to export all document/TV-fields
    placeholder and PHx in Export-mode
    Changes:
    Some intern changes and bugfixing
    stop PHx from replacing chunks, snippet-calls, document-variables and so on
    #
    Release v07 12.10.2008 by Bruno
    New Features:
    Extra config-Tab and config-csv-file
    checkboxes for use or not use default-files
    Save all default-files with one Button
    #
    Release v06 10.10.2008 by Bruno
    New Features:
    dropdowns to choose one or more matching fields for updating documents
    default-csv-file for default TV-values
    default-csv-file for parent-document matching and creating
    you can use now placeholders in all default-files and in csv-source-file
    phx to modify the placeholders within data-importing and for genarating dynamic parent-datas
    checkbox for each sourcefield whether to replace the coresponding placeholder or not
    checkbox whether to update datas from empty source-fields
    checkbox whether to create parents if not found
    use any docfield or TV (one or many) for update- and parent-matchings
    and some bugfixings
    #
    Release v05 Bruno [email protected]
    New:
    fast_content_csv.class.inc.php
    autodetect fieldnames for docs and TVs from first line
    drop-downs to set fields manually
    drop-down for csv-files and templates
    use defaults from default.csv
    change and save values of defaults.csv directly in the module
    update docs and TVs from csv with given docid
    and some little features more.
    #
    Release v035 by SamZ [email protected]

    Todo:
    More Testing
    More Tutorials
    Tutorials in English
    include documentgroups
    ###################################

    */
    [ed. note: Bruno17 last edited this post 14 years, 10 months ago.]
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!
      • 4172
      • 5,888 Posts
      some little modifications more
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 4172
        • 5,888 Posts
        Have uploaded the next version with module for exporting documents and some more new features.
        Some little tutorials included <- English Translation needed.
        Test it!

        Bruno
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 33256
          • 38 Posts
          Bruno You Are the best! Thank you!
            Мои мысли, работы и прочее - тут: http://www.andreyev.name
            • 4172
            • 5,888 Posts
            I do my best, but I’m far away from being the best.
            The next version is coming soon, with complete changed workflow with integrated up and download. You can save all configurations source-file-based in workspaces/actions and bindings to the document-tree. And there is a plugin where you can see by clicking in the document-tree all actions which has bindings to this document in the document-overview as a new tab for direct-starting this pre-configured actions. Now you will have this placeholders for replacing and PHx: source: [#s#...#s#] default-values: [#d#...#d#] doc-tree: [#t#...#t#] resource-values(export): [#r#...#r#] . Hoping someone is interested on this.
            Bruno
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 7231
              • 4,205 Posts
              This sounds great, don’t know how I missed this release. Thanks grin

              This should be in the repository. wink
                [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                Something is happening here, but you don&#39;t know what it is.
                Do you, Mr. Jones? - [bob dylan]
                • 4172
                • 5,888 Posts
                Quote from: dev_cw at Nov 05, 2008, 05:16 AM

                This should be in the repository. wink

                After some Testing and bugfixing, I think, it comes to the repository.
                Here is it for Testing! v09.
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                  • 4172
                  • 5,888 Posts
                  Have modified fast_content_csv, so you can edit many documents at once directly in the manager.
                  see also here:http://modxcms.com/forums/index.php/topic,30885.msg187411.html#msg187411
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 33256
                    • 38 Posts
                    Great Great Great!

                    very useful module!
                      Мои мысли, работы и прочее - тут: http://www.andreyev.name
                      • 34162
                      • 1 Posts
                      Hi there!

                      little bug fix, in file plugin_fast_content_csv.php need change plugin path declaration, like this

                      $basePath = $modx->config['base_path'];
                      $pluginpath = $basePath.'assets/modules/fast_content_csv/plugin/';
                      


                      it’s need for correct plugin work when modx install in sub-dir of document_root

                      good like!