Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#8 | notifications_views.ben_.090311.tar_.gz | 1.16 KB | aromble |
Comments
Comment #1
webflo CreditAttribution: webflo commentedCool. Some of this is already done. I update my sandbox this evening. Your patches are welcome. Thanks!
Comment #2
webflo CreditAttribution: webflo commentedI 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
Comment #3
aromble CreditAttribution: aromble commentedi'll take a look at it this weekend and report back. thanks florian.
Comment #4
aromble CreditAttribution: aromble commentedhi 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.
Comment #5
webflo CreditAttribution: webflo commentedYes, this is a missing part. Please go ahead and port this. But nevertheless views integration for {notifications} table is needed too.
Comment #6
webflo CreditAttribution: webflo commentedI implemented relations to content (nodes) and users. Merged views integration in 7.x-1.x. Its better than nothing ...
Comment #7
sharplesa CreditAttribution: sharplesa commentedIs this present in the dev branch, too? Should it be?
Comment #8
aromble CreditAttribution: aromble commentedhi 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.
Comment #9
webflo CreditAttribution: webflo commentedI going to review the code from aromble ...
Comment #10
webflo CreditAttribution: webflo commentedMerged arombles views integration for taxonomy notifications. Thanks.
Commit 3e7c8d7 on 7.x-1.x.