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
Ah yes, this could/should be the solution.
Thanks for that hint
Martin
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.