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.
When this field is excluded from display, it does not render anything as a token.
at line 129 of views_field_view_handler_field_view.inc, remove this piece of code:
function render($values) {
- if (!empty($this->options['exclude'])) {
- return '';
- }
$displayType = $this->view->display_handler->get_style_type();
$currentDisplay = $this->view->current_display;
Comments
Comment #1
Simon Georges CreditAttribution: Simon Georges commentedCan I get someone to confirm this is indeed the expected behaviour?
Comment #2
killua99 CreditAttribution: killua99 commentedDear fellow Drupal enthusiasts,
I have set this issue to "Postponed (Maintainer needs more information)".
If not already done please add an issue summary and steps how to reproduce the problem.
And please read again, "Making an issue report".
Help about how to do this can be found on IRC and in the user groups.
After there is new information, please re-open the issue by changing the status to active.
--
This issue was edited with the help of Issue Helper
Comment #3
jvieille CreditAttribution: jvieille commentedIn Views the "exclude" status of a field means that this field is not rendered at the field place, but the value is still available as a token or in the $data: variable.
This allow a custom rendering using the "Global:text" field or custom : field:php code.
Step to reproduce:
Comment #4
killua99 CreditAttribution: killua99 commentedCan you please make a patch?
Comment #5
killua99 CreditAttribution: killua99 commentedWell need help with the Drupal 6 branch.
For now I don't have any time to start look the code. Can someone submit a path?
Comment #6
jvieille CreditAttribution: jvieille commentedI don't know how to create a patch. That is a really simple fix to comply with the expeted behaviour of the "exclude from display" option of a field (if it was what is currently done, one would simply remove the field...)
Comment #7
killua99 CreditAttribution: killua99 commentedOfficial info: https://drupal.org/node/707484
Extra info:
http://www.wunderkraut.com/blog/how-to-create-a-patch-for-a-drupal-modul...
https://www.youtube.com/watch?v=pFLLDQFC8yo
http://www.tylerfrankenstein.com/user/4/code/create-apply-patch-drupal-m...
With a simply google search, I'm trying with this to help you to learn how to help me and help others. Is simply, no harm, try this make a patch.
Comment #8
vegansupreme CreditAttribution: vegansupreme commented6.x is no longer supported.