cancel
Showing results for 
Search instead for 
Did you mean: 

Create Custom type in Share

ttati
Champ in-the-making
Champ in-the-making
Hi
I wonder what is the correct way to configure Custom Type creation in Alfresco Share.
I created a custom type and all I 'd like to do is to create one instance of that type, it means I'd like to be able to choose my new type from the drop down menu "Create Content.."
The way I'm going to implement this is to create these two files:

tomcat\shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\documentlibrary\repo-toolbar.get.config.xml
<toolbar>
   <createContent>
     …
      <content mimetype="text/plain" icon="xml" label="My Obj" itemid="mySmiley Surprisedbj"/>
   </createContent>

</toolbar>

tomcat\shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\documentlibrary\toolbar.get.config.xml
<createContent>
   ..   <content mimetype="text/plain" icon="xml" label="My Obj" itemid="mySmiley Surprisedbj"/>





I haven't find any wiki docs .., so is it the correct way to do that?
1 REPLY 1

ttati
Champ in-the-making
Champ in-the-making
Hi again,
I just found out the solution and I think it's good to post it.
so basically the correct file to edit seems to be share-documentlibrary-config.xml
I added the line:

<create-content>
         <content id="plain-text" mimetype="text/plain" label="create-content.text" itemid="cm:content" icon="text"/>
         <content id="html" mimetype="text/html"  label="create-content.html" itemid="cm:content"/>
         <content id="xml" mimetype="text/xml" label="create-content.xml" itemid="cm:content"/>
        <!–CUSTOM–>
       <content id="xml" mimetype="text/xml" label="My Label" itemid="my:myobj"/>
</create-content>