Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back Entry filters from original beta #22

Open
lindseydiloreto opened this issue Mar 13, 2024 · 6 comments
Open

Bring back Entry filters from original beta #22

lindseydiloreto opened this issue Mar 13, 2024 · 6 comments
Labels
Bug Report Something isn't working

Comments

@lindseydiloreto
Copy link
Contributor

When Notifier recently graduated from beta, we temporarily removed a handful of settings specific to Entry events...



Sorry for the minor regression, we'll be bringing back all of these options shortly.

Fortunately, you can recreate these restrictions by using special variables in your template to strategically skip outgoing messages...

Skip if the entry is not new

{% if not entry.firstSave %}
    {% skipMessage "Only send messages for new entries." %}
{% endif %}

Skip if the entry is not in specified sections

{% if entry.section.handle not in ['blog'] %}
    {% skipMessage "Only send messages for Blog entries." %}
{% endif %}

Drafts & Revisions

Drafts & revisions are simply omitted at the moment. That functionality will be returning as well.

@lindseydiloreto lindseydiloreto added the Bug Report Something isn't working label Mar 13, 2024
@whoisgina
Copy link

Hi there, I'm sure you've been super busy surrounding the Craft 5 release, but I was wondering when we can expect this!

I'm excited to try to use Notifier to allow users to "subscribe" to email updates for certain sections of the site. When this feature returns, will the selected section be available on the notification element, perhaps in eventConfig[]?

@lindseydiloreto
Copy link
Contributor Author

lindseydiloreto commented Apr 11, 2024

Thanks for inquiring! This feature is very high on our radar, we're hoping to have it out within the next couple of weeks. 🤞

@whoisgina
Copy link

Great news, thanks for your work on this, @lindseydiloreto!

@lindseydiloreto
Copy link
Contributor Author

Good news, the Entry filters have returned! 🎉

This time around, we've "borrowed" a lot of UX and architecture from the Webhooks plugin, so it should be a familiar interface if you've ever used that.

Fair Warning

This addition was a big change, and I'm about 97% certain that it's stable. But before I cut an official release with these changes, I would greatly appreciate if anyone would take it for a test drive. 🙏

Craft 4

"doublesecretagency/craft-notifier": "dev-v1-dev"

Craft 5

"doublesecretagency/craft-notifier": "dev-v2-dev"

Please let me know if you find any quirks or unexpected behavior! We can release these changes as soon as they are deemed stable.

@whoisgina
Copy link

Amazing, thank you! I'll take it for a spin shortly and report back!

@lindseydiloreto
Copy link
Contributor Author

lindseydiloreto commented May 24, 2024

I've made some significant fixes to this dev version since my previous message, please update to the latest when you get a chance...

Craft 4

"doublesecretagency/craft-notifier": "dev-v1-dev"

Craft 5

"doublesecretagency/craft-notifier": "dev-v2-dev"

Let me know if the new filtering system is working as expected! 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants