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;


Simon Georges’s picture

Can I get someone to confirm this is indeed the expected behaviour?

killua99’s picture

Status: Needs review » Postponed (maintainer needs more info)
Issue tags: +Needs steps to reproduce

Dear 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

jvieille’s picture

Status: Postponed (maintainer needs more info) » Active

In 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:

  • add a Views PDF views_wiew_field
  • add a global : texte field
  • insert in the texte areal the [include] token
  • Observe that the field is rendered 2 times
  • Make the Views PDF views_wiew_field excluded
  • Observe that nothing is rendered, though the global:text field should have still displayed the field value.
killua99’s picture

Priority: Normal » Major
Status: Active » Needs work

Can you please make a patch?

killua99’s picture

Issue summary: View changes
Priority: Major » Normal
Status: Needs work » Postponed

Well 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?

jvieille’s picture

I 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...)

killua99’s picture

Official info: https://drupal.org/node/707484

Extra info:


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.

vegansupreme’s picture

Status: Postponed » Closed (won't fix)

6.x is no longer supported.