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.
Hi
We're using Views date export that way :
drush views-data-export export views_data_export_2 test.txt
The problem is that in export:views_data_export_2 we're using some contextual filters (in this case, the nid) to export only one thing, according to the nid.
Is it possible to pass that nid in the command line
drush views-data-export export views_data_export_2 test.txt ?
Can't find out how to do that.
Thanks for help
Best regards
D.
Comments
Comment #1
dbourrion CreditAttribution: dbourrion commentedHi
I've try
drush views-data-export export views_data_export_2?nid=352 test.txt
No errors but test.txt only contains , lignes
Any ideas to help ?
D.
Comment #2
Steven Jones CreditAttribution: Steven Jones commentedThis is a much-needed feature: #1483118: A way to set view arguments when running from Drush CLI. Follow there for updates.