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!

CommentFileSizeAuthor
FLAG.pdf113.75 KBDonatoo

Comments

Donatoo’s picture

Version: 7.x-2.x-dev » 7.x-2.0-beta6
fehin’s picture

Same issue here. I need another flag link but can only add one based on the relationship option.

fehin’s picture

I found an alternative way of doing this in this thread http://drupal.org/node/1452286. With the Views php module this worked

<?php
print flag_create_link('myflag', $row->nid);
?>

Unfortunately for me, I need mine to work with a user reference field so I haven't gotten my to work yet. Good luck!

quicksketch’s picture

Category: feature » support
Priority: Major » Normal
Status: Active » Fixed

Does anybody has a clue on how to proceed to display two different flag links in one view?

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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

rohr’s picture

Status: Closed (fixed) » Active

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

rohr’s picture

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

joachim’s picture

Status: Active » Fixed

Original problem was answered in #4 above. Re-closing. Please open new issues for new problems.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Flag module version was wrong.