Code Monkey home page Code Monkey logo

Comments (3)

taylordaughtry avatar taylordaughtry commented on June 10, 2024

Hey! No problem; thanks for using Brief!

That's a conversation I'd like to have; it's essentially making Brief more than what it was currently meant to be. Not that I'm opposed to it, but the appeal of Brief is in its simplicity: user notifications, and nothing more.

I'd consider adding this feature; it wouldn't be too big of a deal. Can you expand on how you'd use that feature, if Brief had it? (I'm basically looking for context as to the use-case.)

from craft-brief.

davorpeic avatar davorpeic commented on June 10, 2024

Yeah, I totally get you :)

Basically the person that fills the form (new entry) leaves his email in one of the fields. I would like to be able to send to that field (email) also a copy of the notification in a form of "Thank you for the submission".

Not sure if this could complicate too much of a things, but maybe adding 2 new settings in Brief that would be marked as "custom" notification where you could define which field is the email and the next one which template would you use for that custom notification.. and then in that template you could send entire entry object so we could access that entry fields.

Maybe I'm complicating stuff, and I hope someone else could post their use-cases so you could find the best way (if) to accomplish this :)

thanks
davor

from craft-brief.

taylordaughtry avatar taylordaughtry commented on June 10, 2024

That's totally within the realm of possibility. I'm actually in the process of adding something like this to Brief in the next release: custom email templates. You'd basically tell Brief which template you'd like to use for different types of notifications, and Brief will fill in those templates with the relevant data.

As for the form notifications, that'll be added in the next release, as well. It'll use a hidden action input:

<input type="hidden" name="action" value="brief/notifySubmitter">

I'm still working on how to accommodate developers who can't add another hidden action input. You can't have two action inputs, so I'd have to add functionality for Brief to run its code, then call the other controller actions. Simple, but I'm not sure I want something like that in a plugin that's trying to stay lean.

Stay tuned; I'll see about pushing that form notification feature in the next day or so!

from craft-brief.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.