cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get my new custom type to appear in the Create Content drop down?

robin_clarke
Champ in-the-making
Champ in-the-making
I have created a custon type. I can create a Plain Text content item and Convert Type to my custom type. So far so good.

But, how can I add my custom type to the <strong>Create Content</strong> drop down?

I tried this by creating
$TOMCAT/shared/classes/alfresco/extension/web-client-config-custom.xml


<blockcode>
<alfresco-config>
   <config evaluator="string-compare" condition="Content Wizards">
      <content-types>
         <type name="my:foo" />
      </content-types>
   </config>
</alfresco-config>
</blockcode>


But this has not helped. Any ideas?
3 REPLIES 3

jpotts
World-Class Innovator
World-Class Innovator
With that config you should be seeing my:foo in the "Type" dropdown in Alfresco Explorer (/alfresco) in the first panel of the content creation wizard.

I notice you are using $TOMCAT_HOME/shared. Did you add the shared classloader to your Tomcat config? If not, you need to do that and it could explain why you aren't seeing what you expect.

If you are using 3.3 you might take a look at the Alfresco Developer Guide <a href="https://code.google.com/p/alfresco-developer-guide/source/browse">source</a> or the 2nd edition of the custom content types <a href="http://ecmarchitect.com/archives/2012/01/09/1509">tutorial</a>. The newer version of that <a href="http://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html">tutorial</a> is Share only and is for more recent versions.

Jeff

robin_clarke
Champ in-the-making
Champ in-the-making
OK, I can see my custom type when I go to http://localhost:8080/alfresco .

Sorry, I was not clear - how can I see my custom type in the Create Content drop down in <strong>Share</strong>? We are hoping our business users can use Share.

jpotts
World-Class Innovator
World-Class Innovator
Read the tutorial I referenced because it includes instructions on configuring Alfresco Share for your custom types and aspects. The short story is that you will add it to share-config-custom.xml.

Jeff