Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello everyone!
I was wondering if there is a way to automatically generate and save the exported file when a node is created. In short, my users upload a photo and description to me for my product. I want to save the picture from their node in a folder along with a csv of the body for the node. So, is it possible to generate the file upon node creation?
Any help would be greatly appreciated.
-JB
Comments
Comment #1
johnvYou need to implement hook_entity_presave() or hook_entity_update() to run the View.
Alternatively, you can try Rules to start the VDE..
Comment #2
Steven Jones CreditAttribution: Steven Jones commentedSorry, automatically saving the export isn't a supported feature.
Comment #3
johnvThis status might be clearer.
Comment #4
johnvLet's combine forces in this issue: #1875456: How to programmatically save a views data export file to a repository/a node field/etc.