Developer forum

Forum » Feature requests » Extranet/Intranet (Extended)

Extranet/Intranet (Extended)


Reply
Hi,

Is it possible to create an extender for create and edit profile.
We'd like to create some custom validation and other triggers in code behind when creating or editing a profile.

Maybe it is also a good idea to support the use of validation groups on these templates.

Kind regards,
Remi

Replies

 
Nicolai Høeg Pedersen
Reply
Could you use the Dynamicweb.Modules.UserManagement.Notifications.UserSaved notification? It gets a Dynamicweb.Modules.UserManagement.Notifications.UserNotificationArgs object as its parameter.

Triggered whenever a user is saved and also created..
 
Reply
I am aware and already using the usersaved notification.

What i can't do is pre validate before the user object is saved when the profile is created or updated.

If this is already possible please enlighten me.

Kind regards,
Remi
 
Reply
 
If we had a notification BEFORE a user/group is saved, we could validate or manipulate data before it is saved or even prevent it from being saved.
 
And there is no way to extend the user management templates AFAIK. Template extenders would be VERY useful for adding related content etc.

/Morten
 
Nicolai Høeg Pedersen
Reply
I've added a UserOnBeforeSave notification that is run before the user information is saved to database.

Added a task to implement a notification for validating users when saved in the frontend - so it is possible to add your own validation errors.
 
Reply
 
No template extenders for displaying additional information about users and groups?
 
Nicolai Høeg Pedersen
Reply
TFS6282 RenderUser and RenderGroup template extenders added to DW 8 product backlog.