cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Create Content Item

ania
Champ in-the-making
Champ in-the-making
Hi,
I need to create a custom item in the Alfresco Share Site create content select-box, I added in share-config-custom.xml file the following configuration:

<config evaluator="model-type" condition="DocumentLibrary">  <create-content>   <content id="plain-text" mimetype="text/plain" label="BM_News" itemid="bm:news" icon="ax" />  </create-content></config><config evaluator="model-type" condition="bm:news"> <forms>       <form>          <field-visibility>             <!– inherited from cm:content –>             <show id="cm:title" force="true" />             <show id="cm:description" force="true" />             <!–  specific for bmed:news –>      <show id="bm:product" />          </field-visibility>          <appearance>      <field id="bm:product" label="Abstract"/>      <field id="bm:imageLinks" label="ImageLinks">                        <control>                            <control-param name="compactMode">true</control-param>                        </control>            </field>          </appearance>       </form>    </forms> </config>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍


It works and displays the new custom item in the select-box "Create Content", but I don't know how to display the new item only for the specific site, not in the entire repository document library or in the other sites. It is possible? Thanks
3 REPLIES 3

kamielvdz
Champ in-the-making
Champ in-the-making
Yes this is quite easy if you are running a recent version of Alfresco. You do this by adding the configuration above inside a Surf extensibility module.

Great example <a href="https://code.google.com/p/share-extras/wiki/SampleModules">here</a> and more info <a href="http://blogs.alfresco.com/wp/developer/2012/03/05/share-configuration-extensibility/">here</a>

Do not forget to deploy

krups
Champ in-the-making
Champ in-the-making
Thanks <a href="http://blogs.alfresco.com/wp/developer/2012/03/05/share-configuration-extensibility/">that</a> worked for me.

I am also wondering if you know how to display subtypes under "create content" menu?

gangadharjwala
Champ in-the-making
Champ in-the-making
Hi ,

I am new for alfresco can any one help me out "how create a customized forms in a created new menu of alfresco 4.2"

here i have added one new filed in a shared menu.if i opend that menu i have to get a form.so can any one help me out how to create a new customized form in alfresco and how to link that form to menu.

please find the below attached page here i added one menu with the name (myItem)in shared menubar.