Calling a function when saving content Options
Lieven
Posted: Tuesday, May 20, 2008 8:43:03 AM
Rank: Newbie

Joined: 5/15/2008
Posts: 7
Location: Belgium
Hi,

I'm wondering how I can call a function when I save a content type.
I would like to update an xml file every time a new customer is added.
How can I achieve this?

Thx in advance!
tim
Posted: Tuesday, May 20, 2008 9:11:55 AM

Rank: Addict

Joined: 2/19/2007
Posts: 741
Location: Belgium
You could do that with an actionhandler,

http://www.umbraco.org/documentation/books/creating-and-using-an-action-handler

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
Lieven
Posted: Tuesday, May 20, 2008 10:02:05 AM
Rank: Newbie

Joined: 5/15/2008
Posts: 7
Location: Belgium
Exactly what I was looking for!
Thank you!
Lieven
Posted: Tuesday, May 20, 2008 10:33:25 AM
Rank: Newbie

Joined: 5/15/2008
Posts: 7
Location: Belgium
In the namespace umbraco.BusinessLogic, I don't have the namespace Actions...
This is included by default in the bussinesslogic assembly no?
Lieven
Posted: Tuesday, May 20, 2008 10:36:13 AM
Rank: Newbie

Joined: 5/15/2008
Posts: 7
Location: Belgium
Never mind, found it :)
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.