Closed (fixed)
Project:
Flag
Version:
7.x-2.0-beta6
Component:
Views integration
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2012 at 20:25 UTC
Updated:
26 Jul 2012 at 08:11 UTC
I've been facing a very annoying issue with flags 7.x-2.0-beta6. I'm trying to create a views with to different flag links.
One is called "add to my favorite" and the other one "Wink to this profile".
I was able to insert the "add to my favorite" link in my view and it works as expected but I"m unable to add the second one...
Does anybody has a clue on how to proceed to display two different flag links in one view?
Please see screenshot attached.
Thanks in advance you guys!
Comments
Comment #1
Donatoo commentedComment #2
fehin commentedSame issue here. I need another flag link but can only add one based on the relationship option.
Comment #3
fehin commentedI found an alternative way of doing this in this thread http://drupal.org/node/1452286. With the Views php module this worked
Unfortunately for me, I need mine to work with a user reference field so I haven't gotten my to work yet. Good luck!
Comment #4
quicksketchJust add a second relationship for the second flag link you would like to add, then add an associated field just like you did for the first flag link.
Comment #6
rohr commentedHow can this be accomplished if you need to provide a contextual filter of a uid to display content on a user page (such as user/%/favorites) if the user has set either of two flags on the same content type? Example - article has "hot" and "cold" flags (or something like that) and on their user profile you want to show a page (to others) of which articles that user has flagged and which flag they clicked on. Thanks in advance. Apologies if I'm not supposed to re-open the issue.
Comment #7
rohr commentedIt looks like one way of solving this could be OR functionality that is currently broken (or previously available) in contextual filters: http://drupal.org/node/1451218#comment-5726260 I'm up for other suggestions though.
Comment #8
joachim commentedOriginal problem was answered in #4 above. Re-closing. Please open new issues for new problems.
Comment #9.0
(not verified) commentedFlag module version was wrong.