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

aharown07’s picture

Found 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.

aharown07’s picture

About "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.

mitchell’s picture

Status: Active » Postponed (maintainer needs more info)

Could you please post an export of your views?

aharown07’s picture

Should have that for you shortly.

quicksketch’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Closed (fixed)

It 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.