Edit view Projekt:
page 4:
Fields: field 1 .. field n, one of them: "field_projekt_downloads";
field n with:
X rewrite the output of this field:
contains html-code including the other fields 1..n and: [field_projekt_downloads_fid]
during having an existing (and correct working and done "rescan template files")
views-view-field--Projekt--page-4--field-projekt-downloads-fid.tpl.php

The .php-file does not take any effect, the field "field_projekt_downloads" is displayed normally.
If you don't check "rewrite the output" the php-file works fine.

Comments

merlinofchaos’s picture

Status: Active » Closed (duplicate)
alberto56’s picture

Version: 6.x-2.6 » 6.x-2.9
Status: Closed (duplicate) » Active

Please correct me if I am wrong, but this issue is not resolved and only seems slightly related to #502348: How group display by mutliple fields? rather than a duplicate.

To reproduce:

  • Create a field A
  • Exclude it from display
  • Use a .tpl.php file to modify its output
  • In a later field (field B), use "rewrite the output of this field" to incorporate field A into it.
  • Notice that the incorporated field A is not modified as per its .tpl.php file

Cheers,

Albert.

anfrage’s picture

The problem still exists (even after updating to Views 6.x-2.11 within my testbed):

You've got a view-template:
views-view-field--field-kontaktunt-land-nid.tpl.php

1) This is used correctly when having
field_kontaktunt_land
within the fields of a view
and displaying it on its own.

2) Within the same view within the same page it is not used when having another field outputted by
X rewrite the output of this field
including [field_kontaktunt_land_nid].

Seams as if during the evalution of each [field_...] within the content of "X rewrite the output of this field" there "merely" is absent the same procedure that is used in 1).

There are several places within my drupal homepages that would badly need this - would be very nice if someone is able and would be so kind to repair this. Thank you!

merlinofchaos’s picture

Status: Active » Closed (works as designed)

Repair?

I don't think this is actually broken. The tpl.php will add markup to the value, which is almost never actually wanted when using it as a token. For most users, this would break the functionality, not improve it.