- Issue created by @betarobot
- 🇨🇦Canada lindsay.wils
Also seeing this issue, but I am not even seeing the templated output on the views display preview. Should this work? Thanks
- 🇨🇦Canada lindsay.wils
Is it possible to get an answer here? Should normal view field templates work here just like any other view? I am not seeing that, and I just want to be sure Im not doing anything wrong, so I dont waste anymore time, but no matter what I do, I cannot get theme template files here to do anything.
Thanks
This seems to be related to this issue ✨ Views hooks not executed Fixed .
The data export display is not being rendered and therefore some hooks are not executed. The views data export module includes a hook for this:hook_views_data_export_row_alter
Here is an example:function my_module_views_data_export_row_alter(&$row, \Drupal\views\ResultRow $result, \Drupal\views\ViewExecutable $view) { if ($view->id() == 'my_view') { $node = $result->_entity; // Get the node object $data = getData($node); foreach ($row as $key => &$value) { if (str_contains($key, 'nothing')) { $value = setCustomValue($data, $key); } } } }
- 🇨🇦Canada lindsay.wils
Thanks so much for the comment d_lav, this enabled mt to solved my issue and make my setup waaayyyyy more efficient, really appreciate that! :)