How to leverage Views?

Created on 29 December 2021, almost 3 years ago
Updated 13 April 2023, over 1 year ago

Problem/Motivation

I notice in the module summary it mentions "It Provide integration with Views for node, comment, term, profile and message."

How would I go about creating view-generated content to be featured in this notifications widget? Is this possible?

Simple use case example...

- Logged in user follows (flags) another user
- Logged in user gets notifications if that followed user creates a new node

Thanks!

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States chucksimply

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States chucksimply

    Thank you for the response, although the above use case was just an example. I still don't quite understand how to leverage and integrate views into this module. Can you provide some insight? Is it done within the UI, or only hooks? Am I missing instructions somewhere?

  • Status changed to Active over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States chucksimply
  • πŸ‡ΊπŸ‡ΈUnited States chucksimply
  • πŸ‡§πŸ‡ͺBelgium BramDriesen Belgium πŸ‡§πŸ‡ͺ

    Leverage and integrate views into this module

    What exactly are you trying to achieve?

  • πŸ‡ΊπŸ‡ΈUnited States chucksimply

    I have quite a few scenarios like so...

    - If user1 is following user2 (via flag module),
    - and user2 mentions them when posting an Article (via a user entity reference),
    - and that created Article's "Permission field" is set to "Show to selected followers"
    - then user1 receives a notification noting they've been mentioned in an Article that was created.

    The suggestion you provided in #2 is beyond my skillset (as my Drupal backend knowledge is quite beginner). I'm curious if there's a way within the UI to structure these conditions. That's why I mentioned Views. But also the ECA module might be even better.

    Overall, I'm just trying to find a path forward on creating complex conditions for notification outputs structured within the Drupal UI instead of custom code (if possible).

    Thank you!

  • πŸ‡ΊπŸ‡ΈUnited States chucksimply

    Closing issue in favor of related issue. Views wouldn't be as applicable as ECA for this type of use case.

    https://www.drupal.org/project/notificationswidget/issues/3357494 ✨ Integration with ECA: Event - Condition - Action Active

Production build 0.71.5 2024