留言板
Hook My Account Portlet
Hi,
I want to perform some actions on change of Custom Fields available to user in My Account Portlet. I know it requires me to implement hook, but I don't know which file or service to hook. Can anyone guide me in this regard that how can I hook this portlet, so that I can perform required action whenever a user changes the custom field.
Any valuable comment will be appreciated.
Umair
I want to perform some actions on change of Custom Fields available to user in My Account Portlet. I know it requires me to implement hook, but I don't know which file or service to hook. Can anyone guide me in this regard that how can I hook this portlet, so that I can perform required action whenever a user changes the custom field.
Any valuable comment will be appreciated.
Umair
Why do that when you could just add a model listener to intercept updates?
David H Nebinger:
Why do that when you could just add a model listener to intercept updates?
I have no idea about model listener. So, can you explain me a little that how could I detect change in custom fields using model listener.
Hey David, I have implemented the Model Listener for User to detect changes in Custom Attribute. But I get same Expando Values in onBeforeUpdate(User) and onAfterUpdate(User) methods. I am not sure that did expando changes reflect that user is updated??