AnsweredAssumed Answered

custom content not available

Question asked by marco.tecnoteca on Jun 12, 2008
Latest reply on Aug 12, 2008 by nys
Hi everybody,
I've created a custom content and when tomcat starts all is fine.
But, when I launch the "create content wizard" my custom type is not shown, so I'm not able to use it.
What am I missing?

These are my config files:

1) …classes/alfresco/extension/web-client-config-custom.xml

<config evaluator="string-compare" condition="Content Wizards">
        <content-types>
                <type name="aa:bb" />
        </content-types>
   </config>

   <config evaluator="node-type" condition="aa:bb">
        <property-sheet>
                <show-property name="mimetype" display-label-id="content_type"
                        component-generator="MimeTypeSelectorGenerator" />
                <show-property name="size" display-label-id="size"
                        converter="org.alfresco.faces.ByteSizeConverter"
                        show-in-edit-mode="false" />
                <show-association name="custom:PRFiles"/>
        </property-sheet>
   </config>

2) …classes/alfresco/extension/customModel.xml

<types>
        <type name="aa:bb">
                <title>My Content</title>
                <parent>cm:content</parent>
                <associations>
                        <association name="custom:PRFiles">
                                <title>Associated files</title>
                                <target>
                                        <class>cm:content</class>
                                        <mandatory>false</mandatory>
                                        <many>true</many>
                                </target>
                        </association>
                </associations>
                <mandatory-aspects>
                        <aspect>cm:versionable</aspect>
                </mandatory-aspects>
        </type>
</types>

3) …classes/alfresco/extension/custom-model-context.xml

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>

    <!– Registration of new models –>
    <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/customModel.xml</value>
            </list>
        </property>
    </bean>

</beans>

Ps: I've tried to insert some wrong XML code inside the "web-client-config-custom.xml" file and tomcat didn't startup, as expected.
This means tomcat is currently parsing my files!

Thanks,
Marco

Outcomes