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.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1142196-using_tokens_broken-2.patch | 580 bytes | travist |
Comments
Comment #1
sylvaticus CreditAttribution: sylvaticus commented..same with Node: nid...
Comment #2
travist CreditAttribution: travist commentedI 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.
Comment #3
jromine CreditAttribution: jromine commentedConfirmed that this fixes the issue.
Comment #4
endless_wander CreditAttribution: endless_wander commentedI had the same issue and can confirm that this patch fixed it.
Comment #5
arski CreditAttribution: arski commented+1 to get this committed. And I wouldn't consider this minor at all, maybe even major. :)
Comment #6
carn1x CreditAttribution: carn1x commented+1 for committing, works for me!
Comment #7
neclimdul