Download & Extend

Views: Make "Category" an available field and filter

Project:Userpoints Node Access
Version:7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

This feature request can be implemented once the patch on this thread is committed:

http://drupal.org/node/871126

Here's what we'd like to do:

A. Make "Category" an available field (that is sortable). Field name: "Userpoints Nodeaccess: Points Category". Field description: "The category of points that is used when gaining access to a node."

B. Make "Category" an available filter. Filter name: "Userpoints Nodeaccess: Points Category". Filter description: "The category of points that is used when gaining access to a node." The available categories should be selectable via a select list or checkboxes.

--Ben

Comments

#1

Now that the UP Views patch (the one referenced above) has been committed, I wanted to bump this feature request higher up on the priority list. It would be very nice to be able to use the points category in UP-NA views! :-)

--Ben

#2

Status:active» needs review

The patch adds the category field and also enables it in the list default view.

AttachmentSize
add_category.patch 4.65 KB

#3

Status:needs review» needs work

Tried the latest patch, but this doesn't seem to be quite working yet. Here's what I noticed:

A. In both the "buys" and "list" views, the category field is always listed as "General" (even when the category field is actually something else). For instance, I have some nodes that require 5 points in the "Goodwill" or "Participation" categories. For such nodes the category is always "General" in the view, regardless of the actual category.

B. The "category" header isn't sortable. Since this isn't a computed field, it really should be sortable. Perhaps this is related to A above.

C. When using "category" as a filter for a view, it isn't working properly. For instance, I created a filter on the "buys" view to only show me buys that had a "Goodwill" category. But it doesn't appear that any buys are being filtered... all buys are still being displayed.

--Ben

#4

A quick update to my comment in C. above: It does appear that some type of filtering is being done (not all buys are being displayed), but the filtering does not seem to match what was configured in the view.

--Ben

#5

Bumping this so I don't lose track of it