Closed (fixed)
Project:
Flag clear
Version:
7.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 May 2014 at 11:48 UTC
Updated:
7 Nov 2014 at 18:41 UTC
Jump to comment: Most recent
Hi everyone,
thanks for making this module work under drupal 7.
I installed the module and wanted to add a "unflag" link to my view but can't find it in the available fields.
Does anyone have the same issue?
Comments
Comment #1
zhuber commentedThe only views field for this module is the 'Clear flag link' field. I'm still working on getting the unflag view field to work with user specific 'unflag' links. The issue is getting the UID from the flag relationship, it is not currently available so I will need a way to figure out how to get these values.
Comment #2
baschke commentedokay. thx for the reply
so there is no way yet to unflag a user specific node flag right?
Comment #3
zhuber commentedThere is a menu entry for it, but no views handler.
The menu item is:
unflag/user/%/%/% (unflag/user/[entity-id]/[flag-id]/[user-id])
For example, you could put something like this in your node tpl:
This would print a link out to unflag the current node for a given user.
The difficult part is getting the user ID and flag ID from a views argument. I'm hoping to settle this one day, but don't have the time right now.
Comment #4
zhuber commentedI'm going to add a view that allows you to select which content and user to unflag.
Comment #5
zhuber commentedComment #6
zhuber commentedI've created a new views field handler that allows you to add an 'Unflag' field to your views. This field requires a flag user field to be output. This means you will need the following relationships:
As well as one of the following:
Comment #7
zhuber commented