maybe i'm missing it, but are content/taxonomy subscriptions not exposed to views in notifications for D7? if not, i'm willing to write and share the code to do so.

CommentFileSizeAuthor
#8 notifications_views.ben_.090311.tar_.gz1.16 KBaromble
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webflo’s picture

Cool. Some of this is already done. I update my sandbox this evening. Your patches are welcome. Thanks!

webflo’s picture

Title: views integration in D7 » Views integration in D7

I worked on this in 7.x-1.x--views. There are some @TODOS. Views integration for messaging should be ripped out and done in the messaging project.

git clone --branch 7.x-1.x--views http://git.drupal.org/sandbox/webflo/1222502.git notifications

Can you continue that? What do you think?

Thanks.
Florian

aromble’s picture

i'll take a look at it this weekend and report back. thanks florian.

aromble’s picture

hi florian i took a look at your code. it looks like you are taking things in a different direction than i had in mind. i want to be able to use views to display a list of nodes that my users are subscribed to. a relationship and contextual filter would have to be created. it appears this was done for the subscriptions module here. i may port what they did to D7.

webflo’s picture

Yes, this is a missing part. Please go ahead and port this. But nevertheless views integration for {notifications} table is needed too.

webflo’s picture

Status: Active » Fixed

I implemented relations to content (nodes) and users. Merged views integration in 7.x-1.x. Its better than nothing ...

sharplesa’s picture

Is this present in the dev branch, too? Should it be?

aromble’s picture

hi florian, nice work on the views exposure. it wasn't exactly what i was looking for. i'm attaching my code here in case other people are looking for the same thing i was.

i configured my notifications module to limit subscriptions to ONLY taxonomy terms. i wanted to be able to use views to display all the nodes tagged by subscribed taxonomy terms. so i've written code that assumes all subscriptions are of the content type taxonomy terms. it allows you to display nodes tagged with these terms. there is also a conditional argument where you can filter out the subscriptions to a specific user.

here is the code.

webflo’s picture

Assigned: Unassigned » webflo
Status: Fixed » Needs review

I going to review the code from aromble ...

webflo’s picture

Status: Needs review » Fixed

Merged arombles views integration for taxonomy notifications. Thanks.

Commit 3e7c8d7 on 7.x-1.x.

Status: Fixed » Closed (fixed)

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