First question, why are you using Umbraco 5? It's not anywhere near release and should not be used for production so unless you have a very good reason to use Umbraco 5, I would download 4.7, you can still use Razor but the notifications will work out the box.
Oh, did you say you were using Umbraco 5, not 4? Please be aware that 5 is a CTP (community technology preview) and that it can't be used for anything but experiments right now (as in: no production sites).
I know nothing about v5 really, dive into the source code and see if you can find an AfterPublish event handler. I think in v4 there is a tiny bit of workflow that would sort of do what you're trying to do already, so there's a good chance that that will be included in v5 as well.
And yes, the code you see on the examples is a new CS file, which should be in a new VS project (a new "ASP.NET empty web site" is what I usually use).
How to send email notifications when publish
hello, i'm new with umbraco and apologize if this question alread have answer in this board but i can't find it.
i use umbraco 5 with razor and i want to send email to participant(such as editor) when page updated(click on publish button)
my question is how to do that. i have 2 solution but both solution get me stuck
first solution, i try to find publish event but i can't find it. maybe it might be compile to dll already?
second solution, i try create ajax function(use button on click) to send some parameter to some page(create with razor)
to send email notification but in umbraco i don't know how to create controller and how umbraco routing to my service page
and addition question is how can i list member name and email.
Thanks in advance
Check out the AfterPublish eventhandler (more info on eventhandlers: http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events/overview-of-all-events).
Hi,
Welcome to the forum!
First question, why are you using Umbraco 5? It's not anywhere near release and should not be used for production so unless you have a very good reason to use Umbraco 5, I would download 4.7, you can still use Razor but the notifications will work out the box.
Rich
Oh, did you say you were using Umbraco 5, not 4? Please be aware that 5 is a CTP (community technology preview) and that it can't be used for anything but experiments right now (as in: no production sites).
thanks for your quick reply.
my company already use umbraco 4.x but not in advance. just create template and put some content by control panel.
for now my boss want to know about umbraco 5 such as new function, difference from previous version.
my company want to prepare something before version 5 released.
ok, thanks again and come back to my question.
@Sebastiaan Janssen, i already see your link and i need to implement my function in BeforePublish event
but problem is i don't know how to do it. i need to create new *.CS file? or which file i need to code something in?
from http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events/event-examples
i want to put some code in Document_BeforePublish but i can't find this file. what i'm missing?
I know nothing about v5 really, dive into the source code and see if you can find an AfterPublish event handler. I think in v4 there is a tiny bit of workflow that would sort of do what you're trying to do already, so there's a good chance that that will be included in v5 as well.
And yes, the code you see on the examples is a new CS file, which should be in a new VS project (a new "ASP.NET empty web site" is what I usually use).
Thanks
is working on a reply...