We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10313
    • 375 Posts
    Hello,

    I’m searching for a (comfortable) way to export selected documents with the appropriate TV values (should be done by manager users, not developpers).

    The task is: I have stored some events in my database. They are all managed by modx (and output by ditto). All the events’ documents have some TV with additional information. Now I want to export these events into a csv-document to be able to import them later to a different application or database.

    Is this possible with an existing snippet, plugin or module?

    Thanks and greetings from sunny Einbeck
    Martin
      • 10313
      • 375 Posts
      Ah yes, this could/should be the solution.

      Thanks for that hint
      Martin
        • 11975
        • 2,542 Posts
        Hi,

        here is a snippet I’m using to export document List in a csv Format.

        Parameters:
        - pathToSave = the folder to save the csv file.
        - template = id of the template used by the docs (to get the tvs)
        - fileName = name of the csv file (without .csv)

        and ditto params
        depth
        parents


        Hope that helps

        Note:Listed Documents must have the same template.

          Made with MODx : [url=http://www.copadel.com]copadel, fruits et l