0

Following an excellent suggestion, I added the Flag module to a website in order to allow users to store their favorite stories in a dedicated page. This seems to be working really nicely, but how do I now add the option to flag content as a field in a view?

1 Answer 1

7

If you want to display a list of content a user has flagged - You want build your view as you would any other. Then you add a relationship to the view for the flag you wish to display.

If you wish to allow your user to simply add a flag directly from the view results, you would add a field to the view of the type "Flags: Flag Link". This will add the add/remove flag link to each result in your view.

3
  • 1
    this is right, adding the relationship for the flag is the key to integrating the module with you views Commented Sep 22, 2011 at 2:04
  • Thank you! I'm trying to add a flag link but I'm not seeing this option in Views...?
    – Jane
    Commented Sep 22, 2011 at 8:36
  • You have to add a relationship and select "flag" there first; then flag will become available as an option in fields.
    – chriscaple
    Commented Nov 22, 2011 at 0:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.