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.
By a77icu5 on
What's the proper method to render a field within the views?
In node templates I render php code using
echo render($content['fancy_field']);
But when I want to render php code within a view I was using
echo render($view->result->_field_data['nid']['entity']->fancy_field);
But it didn't works, any ideas?