Multiple data exports

Created on 14 June 2024, about 1 year ago

In my case i do have 2 content types:
school and classrooms.

There is entity reference so every school has multiple classrooms.

With views data export module i have created 2 views of data export (csv) and now when i visit link of view i can download a csv file.

However i need to visit secondary view to download the second csv of classrooms.
There is a plan to add also aditional views exports like students etc.

However for user it would by pain in the ass to download several csv files one by one.

My question: with this ECA module is it possible to run it so all csv files will be downloaded together at the same time / maybe zip them togeher ???

And if so, how to trigger that download. Should i create content type with boolean field download so if user click on it, eca will run download and put back value of boolean to 0?

💬 Support request
Status

Active

Version

2.1

Component

Documentation

Created by

🇸🇰Slovakia coaston

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @coaston
  • 🇩🇪Germany jurgenhaas Gottmadingen

    This module is built on top of views, which is part of Drupal core. And views is only always running 1 data query which can be exported.

    If you need to combine multiple views queries, then you should export them one by one and afterwards concatenate the exported files. To do that, we've e.g. built a custom action that takes a number of exported files and puts them together into a single zip file. We may eventually publish that plugin is the eca_file sub-module when the customer agrees. But it's not too complex to build something like that yourselves.

  • 🇸🇰Slovakia coaston

    Thank you for your answer.

    It will be a big help help if your customer would allow you to publish such an amazing feature so community can use it.

    Maybe one day, much appreciated.

  • 🇫🇮Finland anaconda777

    Hi,
    I am also looking for multipe eca exported csv file combining functionality.

  • 🇩🇪Germany jurgenhaas Gottmadingen

    Actually, when it comes to combining multiple CSV files into one, this doesn't require this module eca_views_data_export for combining the multiple file outputs. Instead, the eca_views submodule can be used to generate multiple exports into files, and then we just need a new action for the eca_file submodule that will be able to concatenate those files.

    If anyone wants to give this a try, I'll be happy to review an MR when available.

Production build 0.71.5 2024