cancel
Showing results for 
Search instead for 
Did you mean: 

Custom aspects with 3b?

topher
Champ in-the-making
Champ in-the-making
Hello,

I've tried to implement a new custom content model as per this tutorial:

    http://ecmarchitect.com/archives/2007/06/09/756

And everything seems to work OK except that I can't get all the aspects to display in the web client UI.

I get the new content type on creation, I get the extra fields in the advanced search, etc.

But I do not get all of the aspects to display in the content properties page.  I see the Related Documents, but not the webable or relatedProducts aspects.

Is there a known issue with aspects in 3b?  I see that tutorial linked to a lot in these forums, so I'm guessing it's worked for others.  All I did was copy over the context xml, model xml, the web-client-config-custom.xml, and the webclient.properties over to $CATALINA_HOME/webapps/alfresco/WEB-INF/classes/alfresco/extension and restart Tomcat.  There aren't any errors on startup in the alfresco or catalina logfiles.

Also, if this is the wrong place for this kind of question, I apologize.
2 REPLIES 2

topher
Champ in-the-making
Champ in-the-making
OK - so I took out all of my custom stuff and started with the examples in shared/classes/alfresco/extension.  I moved example-model-context.xml.sample to example-model-context.xml and uncommented the my:sop stuff from web-client-config-custom.xml.

Everything but the my:imageClassification aspect fields show up as I would expect.

This is fine with me, I can just make my model contain the properties I need and not use aspects.

Should the my:imageClassification properties show up in Content Properties with the other example fields?

jpotts
World-Class Innovator
World-Class Innovator
What you are trying to do should work fine in 3b. Have you actually added the aspect to the object? The properties of an aspect won't show up in the properties editor unless the content you are viewing actually has had the aspect applied. Check the node browser to confirm that the aspects are there for that object. If they are and your properties still don't show up double-check your web-client-config-custom.xml file.

Jeff