Is it possible to hook into the save button event from an umbraco dashboard control? In the current scenario I want to do something when the Save button is clicked in the UserType edit page.
UserType as in the back office users (people with Umbraco logins)? If that's the case you'll have to dig into the core quite heavily. UserType doesn't have any event handlers which you can tie into, like you do for Document/ Media/ etc (anything which is a 'node')
@slace, yes back office users. I didn't want to subscribe to the UserType save event I ideally wanted to do something when the save button is clicked on the page where my user control exists
The reason for wanting to do this is really so that users do not need to click a separate save button on my user control to save changes they have made. Would be nice for it to all happen when the save image button is clicked on the page.
Hook into dashboard save button event
Is it possible to hook into the save button event from an umbraco dashboard control? In the current scenario I want to do something when the Save button is clicked in the UserType edit page.
UserType as in the back office users (people with Umbraco logins)? If that's the case you'll have to dig into the core quite heavily. UserType doesn't have any event handlers which you can tie into, like you do for Document/ Media/ etc (anything which is a 'node')
Hi Simon,
You want to look into Events, a good place to see what events are available is
http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events/overview-of-all-events
and example of how to code this up is available at
http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events
Cheers,
Chris
@slace, yes back office users. I didn't want to subscribe to the UserType save event I ideally wanted to do something when the save button is clicked on the page where my user control exists
The reason for wanting to do this is really so that users do not need to click a separate save button on my user control to save changes they have made. Would be nice for it to all happen when the save image button is clicked on the page.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.