We currently have the ability to filter nodes that have been bookmarked with a certain timeframe by individual users. However, this does not include the ability to filter most (or least) marked nodes within a certain timeframe.

CommentFileSizeAuthor
#2 views_bookmark.views_.inc_.191661.patch1.15 KBjaydub

Comments

zeryn’s picture

I have a similar need.

Views Bookmark provides a field that contains the "count" of bookmarks for a node. It can be displayed and used as a Sort field but not as a Filter.

For example, find those nodes where the "count of bookmarks" is Greater than _____ or Less than or Is equal to or Is not equal to etc.

jaydub’s picture

Status: Active » Needs review
StatusFileSize
new1.15 KB

Ok this attempt at adding this functionality was done pretty much as I was reading the Views docs....

but at the very least it's working as expected although there is no validation of the input for
what 'count' value to filter on....

Please look and tell me if it this is going in the right direction

mooffie’s picture

Component: Code » Views integration
Status: Needs review » Postponed (maintainer needs more info)

Jeff, thanks for the patch! I applied it (after changing 'value' => '' to 'option' => 'integer', thought this change changes nothing...)

However, I wonder about quicksketch's feature request. I don't quite understand it, and I think zeryn's feature request is not the same as quicksketch's. So I'm chaging the status to 'needs more info' and hoping Nate could shed more light here.

quicksketch’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Well, it turns out what I was requesting (on behalf of a client) really seems to be too demanding of a feature. I've yet to see a structure like views_bookmark handle such a scenario. The case was as such:

Show top bookmarked videos within the past: week, month, last month, and all time.

All time is pretty easy, but week and months proved to be exceptionally difficult. Basically you'd need to select the videos with the most bookmarks between timestamp x and timestamp y, then sort from most bookmarked (within that period) to least bookmarked. However, since we've redesigned and I agree that zeryn's request is not the same as mine, I'm going to mark "won't fix". jaydub, if you could submit your patch as a separate issue and describe it's functionality I'd appreciate it. I think this request really is beyond the reasonable expectations of views (or maybe just our understanding of it). ;)

mooffie’s picture

jaydub, if you could submit your patch as a separate issue and describe it's functionality I'd appreciate it.

It's OK, I already applied his patch. It's the 'Jeff' I was talking to in #3 :-)

The case was as such:
Show top bookmarked videos within the past: week, month, last month, and all time.

Ahah! Now I understand. It's a feature that can be clearly seen at Ubuntu brainstorm (the upper left block).