AnsweredAssumed Answered

specifying the appropriate aspect and properties value

Question asked by dooley on Nov 9, 2007
Latest reply on Nov 9, 2007 by dooley
Using Webscripts, I have been able to expose all forum's created within a forum space, along with the associated topics and posts.  Also, I have added the functionality to create new topics and replies to posts through those same Webscripts.

What I am working on now is providing the user with the the ability to choose an icon that corresponds with their topic i.e. question or statement.  Pretty much the same thing as when you create a topic within Alfresco.

I have applied the correct aspects to a new topic; however, I cannot get the correct icon to appear.  Sample code for adding an icon:

topic.properties.icon = "topic_question";

The topic is created but the icon does not appear, and using the node browser, I can see that app:icon is set to topic_question, but the property type is blank and the value type has been populated with the what should be stored in property type.

value type = {http://www.alfresco.org/model/dictionary/1.0}text

Does anyone no what I should be doing?  If my question confuses you, let me know and I will be happy to clarifty.

Outcomes