Trying to put a link in each row of my Views (one node view, one comm view) that links to an another view (listing flags for the node/comment) using an argument based on the NID/CID.
Problem: though NID appears as a token for use in URLs for a couple of the Flag fields (counter, for example...sometimes), it doesn't work. Instead of feeding the NID into the url, [b]it inserts "list."[/b] And for some other Flag fields, NID doesn't appear at all (same w/CID).
(I have a link working, but to do it I had to use a node field and "rewrite the output".
But the resulting link appears in every row regardless of whether there are any flags or not. I'd like to base it on a Flag field so it only appears when it's meaningful.)
Comments
Comment #1
aharown07 commentedFound another (better) workaround for this.
I was able to ad a NID field and rewrite the output w/the counter replacement pattern and output as a link using nid in the replacement pattern.
The result is a flag count that links to a display of flags. It displays "0" when there are no flags on the node but at least the display makes more visual sense.
Comment #2
aharown07 commentedAbout "list" in my initial post: discovered a pattern here. What it's doing is inserting the field label instead of the nid or cid in these cases. "List" happened to be what I was using for a field label.
Comment #3
mitchell commentedCould you please post an export of your views?
Comment #4
aharown07 commentedShould have that for you shortly.
Comment #5
quicksketchIt sounds like this might have been a misunderstanding of the Views "rewrite field" functionality. Views will output literally all the rendered output whenever you're using a token, as aharown07 found. I'm closing this issue after lack of activity.