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.
I'm trying to create unattended export with cron /drush / views data export. Everything is fine until I need to pass arguments to a view. Drush command for views data export doesn't provide an option for that, so I guess it's not implemented for now. Would be nice to have this possibility.
Comments
Comment #1
amfriedman CreditAttribution: amfriedman commentedI would add that this is imperative for wide-spread adoption of this module. Contextual arguments are one of the cornerstones of Views, as they assist in DRY programming practices.
Comment #2
Steven Jones CreditAttribution: Steven Jones commentedAgreed
Comment #3
mikeryanIt's really not that challenging, here's a D6 patch...
Comment #4
blisteringherb CreditAttribution: blisteringherb commentedHere's a patch for the D7 version.
Comment #5
Steven Jones CreditAttribution: Steven Jones commentedComment #7
windmaomao CreditAttribution: windmaomao commentedanyone can give an example after this patch, what would be the syntax for calling ? thank you very much, yes this is must-have feature.
Comment #8
Steven Jones CreditAttribution: Steven Jones commentedRe-roll
Comment #9
Steven Jones CreditAttribution: Steven Jones commentedCommitted to 7.x-3.x. Needs backporting.
Comment #10
Steven Jones CreditAttribution: Steven Jones commentedComment #11
Steven Jones CreditAttribution: Steven Jones commentedInitial attempt at a backport.
Comment #12
Steven Jones CreditAttribution: Steven Jones commentedThis was the intended patch.
Comment #14
LCM CreditAttribution: LCM commentedThe current implementation of the drush option
--arguments
only works if the Data Export display is set to "Batch". Otherwise it will not use the given arguments. (See views_data_export.drush.inc)Is there a reason for this, or could one always read the arguments option an pass it to
->execute_display
regardless of the display's batch setting.kindly,
Lennart
Comment #15
amoebanath CreditAttribution: amoebanath at ComputerMinds commentedAs Drupal 6 nears the end of its life and support period, the 6.x version of Views Data Export will not be supported either. To that end, this issue has been closed, and will not be resolved in the 6.x branch of Views Data Export.
If this issue is still relevant to 7.x branch of Views Data Export, then please re-open and move to a relevant 7.x version.