Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon Dingley 1431 posts 3332 karma points c-trib
    Oct 21, 2009 @ 13:28
    Simon Dingley
    0

    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.

  • Aaron Powell 1708 posts 3044 karma points c-trib
    Oct 21, 2009 @ 13:43
    Aaron Powell
    0

    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')

  • Chris Koiak 700 posts 2626 karma points
    Oct 21, 2009 @ 13:45
    Chris Koiak
    0

    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

  • Simon Dingley 1431 posts 3332 karma points c-trib
    Oct 21, 2009 @ 14:00
    Simon Dingley
    0

    @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.

  • 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.

Please Sign in or register to post replies