Is is possible to not flag individual nodes, but flag a view of nodes? If not can it be done?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | flag_views.zip | 8.96 KB | jarchowk |
Is is possible to not flag individual nodes, but flag a view of nodes? If not can it be done?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | flag_views.zip | 8.96 KB | jarchowk |
Comments
Comment #1
quicksketchNo, 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.
Comment #2
jarchowk commentedOK thanks for getting back to me. I'll check out Fag Term and see what I can do.
Comment #3
quicksketchComment #4
jarchowk commentedOk 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.
Comment #5
calte commentedDepending on exactly what you want, you coould use cck and viewfield. There might be a better workaround.
Comment #6
jarchowk commentedI get what you're saying. I'll check that out, thanks.
Comment #8
queryblitz commentedHow 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'); ?>