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 have a view data export that is accessible via an admin url /admin/commerce/orders/carts/export
I have tried replacing the template for the CSV as I need to make modification to it.
The view theme info does see the template file but when go to the URL it is not using it and instead uses the one in the module.
I have tried replacing it using theme_registry_alter but I had no luck.
Does any one know a magic trick to make it possible use custom template?
Comments
Comment #2
akozoriz CreditAttribution: akozoriz as a volunteer commentedYou can use function hook_views_plugins_alter
Create own module, for ex. my_module and add such code to it
After that copy csv templates
to templates folder in your module directory and change them as you wish.
Comment #3
abhijeet.kumar2107 CreditAttribution: abhijeet.kumar2107 as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedHi @akozoriz
I need to show only column and show individual filed value on horizontal row. How can i achieve this.
views_data_export.theme.inc already writen as cell how can we alter and change in this file in cutom module.
views-data-export-xls-body.tpl.php