cancel
Showing results for 
Search instead for 
Did you mean: 

How hide a menu item in the "Create..." menu in Doclib like hiding "Plain Text..."

allblue
Champ on-the-rise
Champ on-the-rise

I know how to add a menu item to the " Create.."

Adding a menu item to the "Create..." menu in DocLib | Alfresco Documentation

but how can I remove/hide an item like Plain Text or HTML?

1 ACCEPTED ANSWER

cesarista
World-Class Innovator
World-Class Innovator

Hi Red Sky:

Edit $ALF_HOME/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml

Find <config evaluator="string-compare" condition="DocumentLibrary" replace="true"> section and add the next lines inside (see commented lines below):

      <create-content>

          <!--

         <content id="plain-text" label="create-content.text" type="pagelink" index="10" icon="text">

            <param name="page">create-content?destination={nodeRef}&amp;itemId=cm:content&amp;mimeType=text/plain</param>

         </content>

          -->

         <content id="html" label="create-content.html" type="pagelink" index="20">

            <param name="page">create-content?destination={nodeRef}&amp;itemId=cm:content&amp;mimeType=text/html</param>

         </content>

         <content id="xml" label="create-content.xml" type="pagelink" index="30">

            <param name="page">create-content?destination={nodeRef}&amp;itemId=cm:content&amp;mimeType=text/xml</param>

         </content>

         <content id="folder" label="create-content.folder" icon="folder" index="5" type="javascript">

            <param name="function">onNewFolder</param>

         </content>

      </create-content>

Then refresh share webscripts in (/share/service/index) or restart alfresco (share).

The reference files are in $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/share-*xml:

Regards.

--C.

View answer in original post

2 REPLIES 2

cesarista
World-Class Innovator
World-Class Innovator

Hi Red Sky:

Edit $ALF_HOME/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml

Find <config evaluator="string-compare" condition="DocumentLibrary" replace="true"> section and add the next lines inside (see commented lines below):

      <create-content>

          <!--

         <content id="plain-text" label="create-content.text" type="pagelink" index="10" icon="text">

            <param name="page">create-content?destination={nodeRef}&amp;itemId=cm:content&amp;mimeType=text/plain</param>

         </content>

          -->

         <content id="html" label="create-content.html" type="pagelink" index="20">

            <param name="page">create-content?destination={nodeRef}&amp;itemId=cm:content&amp;mimeType=text/html</param>

         </content>

         <content id="xml" label="create-content.xml" type="pagelink" index="30">

            <param name="page">create-content?destination={nodeRef}&amp;itemId=cm:content&amp;mimeType=text/xml</param>

         </content>

         <content id="folder" label="create-content.folder" icon="folder" index="5" type="javascript">

            <param name="function">onNewFolder</param>

         </content>

      </create-content>

Then refresh share webscripts in (/share/service/index) or restart alfresco (share).

The reference files are in $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/share-*xml:

Regards.

--C.

allblue
Champ on-the-rise
Champ on-the-rise

hi and thank you, everything is in the "replace = true" is what I was missing.

Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.