I was wondering if it will be possible to make the module available to Views. As far as I understand, it is not possible to show the customer a list of their purchased nodes, which causes a lot of confusion and frustration for the customers.

http://drupal.org/node/235062 shows what the minimum requirements for the Views integration are. I tried the instructions, but needless to say I was not successful. Is it possible that somebody with programming experience could add this feature.

Thanks for the help

CommentFileSizeAuthor
#6 uc_node_access_views.patch8.13 KBlongwave

Comments

ckidow’s picture

subscribing

ultimike’s picture

Subscribing.

go7’s picture

I subscribed to this issue a long time ago. Could somebody please let me know what the "Subscribing" comment means?

Also I would really need this feature, is it possible to integrate the UC Node Access with Views, or any other possibility for customers to see links to the purchased nodes?

ckidow’s picture

"Subscribing" means that this is important for me so I post a comment (shortly "subscribing") and after that, this thread will be listed under user/%/track... but you can also post a "hello world" and this thread will be listed under your tracking tab. But "subscribing" is just that what it stands for...

go7’s picture

Thanks a lot for that info CKIDOW. I was wondering about that for quite some time, but nobody ever explained it, nor was I able to find the answer.

longwave’s picture

Status: Active » Needs review
StatusFileSize
new8.13 KB

A patch is attached that adds Views support to this module as follows:

  • Node access: Expiry - the expiry date of the node for the current user, available as a field, filter and sort option.
  • Node access: Expires - filter to show nodes that have an expiry date ("Yes" option), or are available indefinitely ("No" option).
  • Product: Has node access feature - filter to show nodes that can be purchased.

It also adds a new default uc_node_access view which, when enabled, adds a page at /nodeaccess listing the nodes that the current user has purchased along with the expiry date (or "never" for indefinite access).

This work was sponsored by PlanesTV.

torgospizza’s picture

Awesome, thanks longwave! We could use this patch as well.

retiredpro’s picture

tried patching against the dev version from 2012-Jan-18. for some reason it created 3 files for me but placed them in the uc_node_access module directory rather than uc_node_access/views

i manually created a views folder and moved the following 3 files into it and it worked.
uc_node_access.views.inc
uc_node_access.views_default.inc
uc_node_access_handler_field_date.inc

was it because i patched it incorrectly? i tried the command patch -p1 < uc_node_access_views.patch. it then asked me for the file to patch for which i specified uc_node_access.module

the patch allows me displays the expiration date views field that i needed. thanks!