cancel
Showing results for 
Search instead for 
Did you mean: 

Add new aspect

sulyman_korj
Champ in-the-making
Champ in-the-making
I am new on alfresco I use alfresco-4.2.f I try for two month ago to add new custom aspect but all my attempts not success, Please can any body help me and give me step by step how I can add custom aspect.

Regards
12 REPLIES 12

sanket
Champ on-the-rise
Champ on-the-rise

sulyman_korj
Champ in-the-making
Champ in-the-making
I tried to change exampleModel.xml.sample to exampleModel.xml and example-model-context.xml.sample to example-model-context.xml and restart tomcat but I didn't find any change on aspect.

sanket
Champ on-the-rise
Champ on-the-rise
Refer this blog if you want to add and see your custom aspect in Alfresco Share.

http://blogs.alfresco.com/wp/wabson/2010/02/25/adding-custom-aspect-support-in-alfresco-share/

sulyman_korj
Champ in-the-making
Champ in-the-making
I tried it is not working, please can any body help me I can give access for any one by team viewer to help me if he need

sanket
Champ on-the-rise
Champ on-the-rise
You need to specify which alfresco you are working with ?
1) Alfresco explorer (http://localhost:8080/alfresco)
OR
2) Alfresco share (http://localhost:8080/share)

If you are using alfresco explorer, you need to customize web-client-config.xml file.

http://docs.alfresco.com/3.4/index.jsp?topic=%2Fcom.alfresco.Enterprise_3_4_0.doc%2Ftasks%2Fkb-code-...

sulyman_korj
Champ in-the-making
Champ in-the-making
I am working on

2) Alfresco share (http://localhost:8080/share)

sanket
Champ on-the-rise
Champ on-the-rise
Then the above link (http://blogs.alfresco.com/wp/wabson/2010/02/25/adding-custom-aspect-support-in-alfresco-share/) explains it very well.
Please follow each and every step as explained.
It should definitely work.

Post the errors/problems faced here in case if you face any.

sulyman_korj
Champ in-the-making
Champ in-the-making
regarding
The last file in our model definition adds some i18n labels for the aspect and property names. Add the following content to the file alfresco/messages/knowledgebase.properties.
for this should be create knowledgebase.properties on on which one

opt/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/classes/alfresco/messages
opt/alfresco-4.2.f/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/messages
opt/alfresco-4.2.f/tomcat/shared/classes/alfresco/messages

sulyman_korj
Champ in-the-making
Champ in-the-making
I am facing the below error

17:13:28,599 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
java.util.MissingResourceException: Can't find bundle for base name alfresco.messages.knowledgebase, locale en_US
        at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)
        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:795)
        at org.springframework.extensions.surf.util.I18NUtil.getLocaleProperties(I18NUtil.java:476)
        at org.springframework.extensions.surf.util.I18NUtil.getMessage(I18NUtil.java:360)
        at org.springframework.extensions.surf.util.I18NUtil.getMessage(I18NUtil.java:390)
        at org.springframework.extensions.surf.util.I18NUtil.getMessage(I18NUtil.java:377)
        at org.alfresco.util.LogUtil.error(LogUtil.java:100)