Is is possible to not flag individual nodes, but flag a view of nodes? If not can it be done?

CommentFileSizeAuthor
#4 flag_views.zip8.96 KBjarchowk

Comments

quicksketch’s picture

No, it's not possible to flag a view with Flag module alone. While a view technically could be flagged, support for flagging anything other than nodes, comments, and users is not supported by Flag module directly. No additional support will be included in Flag core. However you might take a look at Flag Term for an example of how to flag other types of content. Or more relating to what you want, you may want to check out Views Saved Searches or Views Bulk Operations.

jarchowk’s picture

OK thanks for getting back to me. I'll check out Fag Term and see what I can do.

quicksketch’s picture

Category: feature » support
Status: Active » Fixed
jarchowk’s picture

StatusFileSize
new8.96 KB

Ok so I created a quick flag_view module which seems to do the job, heavily borrowed from flag_terms. The only thing that doesn't seem to work is its view integration (ironically?). Maybe someone can lend me a hand there.

You are able to select which views get the link. The flag link is displayed in the view footer.

Let me know if you see anything else that's funny. I don't know the flag module very well.

calte’s picture

Depending on exactly what you want, you coould use cck and viewfield. There might be a better workaround.

jarchowk’s picture

I get what you're saying. I'll check that out, thanks.

Status: Fixed » Closed (fixed)

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

queryblitz’s picture

How do I display the flag in a block?

<?php print flag_create_link('bookmark', $view->vid); ?>
is not working.

Possibly because the view itself is a block?

edit: Got it to work. I used
<?php print flag_create_link('bookmark', 'view-name'); ?>