Hi,
I a newbie to Alfresco. I have read the wiki on 'Data Dictionary Guide' and have Alfresco installed and working. Now as part of evaluating the product, I am trying to create a content type that would allow a user to create a Question and Answer type content. In another words, when the user goes to create a content, he would get a form that would look as follow:
============================
Product: <Pick list of products>
Question: <textarea>
Answer: <textarea>
============================
So what I did was to create a custom model as follows:
<types>
<type name="custom:QA">
<title>Q-A</title>
<parent>cm:cmobject</parent>
<properties>
<property name="custom:Question">
<title>Question</title>
<type>d:content</type>
</property>
<property name="custom:Answer">
<title>Answer</title>
<type>d:content</type>
</property>
<property name="custom:QA_ID">
<title>Article QA ID</title>
<type>d:text</type>
</property>
</properties>
<mandatory-aspects>
<aspect>cm:versionable</aspect>
</mandatory-aspects>
</type>
The above model passes ModelTest. I also updated the web-client-config-custom.xml and added it 'Content Wizards' section. However, when I start up Alfresco, I get the following message in the log file:
Failed to add 'custom:QA' to the list of content types as the type is not a subtype of cm:content.
This means I can't create a content which is not subtyped by cm:content if I want to user 'Content Wizards'. Then does this mean, I should create my own 'QA Wizard'? Could someone suggest what is best practice here, any pointers is appreciated :?: