AnsweredAssumed Answered

Add a new property into person object

Question asked by ezeng_ixxus on Dec 20, 2012
Hello There:

I am trying to add a customized property into cm:person object. I followed the tip from http://ecmarchitect.com/archives/2012/02/27/1555

However, I could not make this work in alfresco enterprise 4.0.2.

I downloaded the source code from http://ecmarchitect.com/archives/2012/02/27/1555 and did following changes

All my changes i made in share-jar project

1.Extend org.alfresco.web.site.SlingshotUserFactory with my own Factory class
2.In share-config-custom, override the defaults, user-factory element with a pointer to the new user factory bean
3.Override Alfresco’s profile.js with your own and extend the Alfresco.UserProfile component. /share-jar/src/main/resources/alfresco/web-extension/site-webscripts/org/alfresco/components/profile/xxx-profile.js
4.Extend org/alfresco/components/profile/userprofile.get.html.ftl with your own that references the extended user profile component and includes fields and labels for your custom properties.
/share-jar/src/main/resources/alfresco/site-webscripts/org/alfresco/components/profile/userprofile.get.head.ftl
/share-jar/src/main/resources/alfresco/site-webscripts/org/alfresco/components/profile/userprofile.get.html.ftl
5.Localize your custom properties.

I can start the tomcat server without any error msg. But i just could not see the extra field displayed.

Is there anyone tried this before and make it work in enterprise 4.0.2?

Any help will be appreciated.

Thanks

Outcomes