cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Create Content Google Docs

army81
Champ in-the-making
Champ in-the-making
Hi,
I would like disable the  creation of Google Docs in the toolbar "Create" of repository.
I tried  alfresco-global.propesties:

googledocs.enabled=false

and in share-config-custom.xml:


<google-docs>

   <enabled>false</enabled>

</google-docs>



<aspects>

         <!– Aspects that a user can see –>

         <visible>

            <aspect name="cm:generalclassifiable" />

            <aspect name="cm:complianceable" />

            <aspect name="cm:dublincore" />

            <aspect name="cm:effectivity" />

            <aspect name="cm:summarizable" />

            <aspect name="cm:versionable" />

            <aspect name="cm:templatable" />

            <aspect name="cm:emailed" />

            <aspect name="emailserver:aliasable" />

            <aspect name="cm:taggable" />

            <aspect name="app:inlineeditable" />

<!–             <aspect name="gd:googleEditable" /> –>

            <aspect name="cm:geographic" />

            <aspect name="exif:exif" />

            <aspect name="audio:audio" />

            <aspect name="cm:indexControl" />

            <aspect name="dp:restrictable" />

         </visible>



But the links are always visible.
4 REPLIES 4

mitpatoliya
Star Collaborator
Star Collaborator
you can remove the actions related to google docs by overriding action group of document detail and remove actions related to google doc.

army81
Champ in-the-making
Champ in-the-making
thanks for the reply, but I have not understand how to proceed. Could you give me some more precise indication

mitpatoliya
Star Collaborator
Star Collaborator
All the actions which you see on the documents can be configured weather to show on UI or not.
If you go to share-documentlibrary-config.xml you will be able to see the actions related configurations where there will be actions related to google docs and they are included in various action groups. you just need to override those configs in your share-config-custom.xml and remove those actions from action groups and you are done.

army81
Champ in-the-making
Champ in-the-making
I found the solution:
Override toolbar.lib.js in \share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary\include, replacing:


var attr, content, contentConfig, paramConfigs, paramConfig, permissionsConfigs, permissionConfigs, permissionConfig;
         for (var i = 0; i < contentConfigs.size(); i++)
         {
         
            contentConfig = contentConfigs.get(i);
            attr = contentConfig.attributes;
         
      
            // Create content menu items
            content = {
               type: attr["type"] ? attr["type"].toString() : null,
               icon: attr["icon"] ? attr["icon"].toString() : attr["id"] ? attr["id"].toString() : "generic",
               label: attr["label"] ? attr["label"].toString() : attr["id"] ? "create-content." + attr["id"].toString() : null,
               index: parseInt(attr["index"] || "0"),
               permission: "",
               params: {}
            };


with:



var attr, content, contentConfig, paramConfigs, paramConfig, permissionsConfigs, permissionConfigs, permissionConfig;
         for (var i = 0; i < contentConfigs.size(); i++)
         {
         
            contentConfig = contentConfigs.get(i);
            attr = contentConfig.attributes;

         if(attr.id=='google-docs') {
            continue;
         }


            // Create content menu items
            content = {
               type: attr["type"] ? attr["type"].toString() : null,
               icon: attr["icon"] ? attr["icon"].toString() : attr["id"] ? attr["id"].toString() : "generic",
               label: attr["label"] ? attr["label"].toString() : attr["id"] ? "create-content." + attr["id"].toString() : null,
               index: parseInt(attr["index"] || "0"),
               permission: "",
               params: {}
            };