| Project: | Views Bonus Pack |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
Issue Summary
On feeds styles that accept fields ar rows style (e.g. txt, XML) the field "Node: Path" remain fixed to the one of the first item when it is selected as excluded from display and then used as a custom token in an other field using the option "Rewrite the output of this field".
To be more clear ;-) :
- create a view (e.g. of events) and add to it a feed display
- choose style txt
- choose fields Node: Path and Node: Title
- on "Node: Path" field options select "Exclude from the display"
- in "Node: Title" field options select "Rewrite the output of this field" and type "[path] - [title]"
Now you get the path of the first record on all items :-(
I tried with a page and it seems to happen only with feeds..
If I uncheck "Exclude from the display" I got it in both positions the right path.
Comments
#1
..same with Node: nid...
#2
I ran into the same issue. The problem is really using Token's that pull in other fields.
After debugging, I figured out that this module is not calling the theme functions if the field is set to exclude. In order for the tokens to work within views, the theme function for every field must be called. Then you can simply not show the output of that field is set to exclude.
Here is the patch that fixes this issue.
Thanks,
Travis.
#3
Confirmed that this fixes the issue.
#4
I had the same issue and can confirm that this patch fixed it.
#5
+1 to get this committed. And I wouldn't consider this minor at all, maybe even major. :)
#6
+1 for committing, works for me!