Disable Create Content Google Docs
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2014 05:37 AM
Hi,
I would like disable the creation of Google Docs in the toolbar "Create" of repository.
I tried alfresco-global.propesties:
and in share-config-custom.xml:
But the links are always visible.
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.
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2014 06:09 AM
you can remove the actions related to google docs by overriding action group of document detail and remove actions related to google doc.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2014 06:20 AM
thanks for the reply, but I have not understand how to proceed. Could you give me some more precise indication
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2014 11:48 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2014 03:57 AM
I found the solution:
Override toolbar.lib.js in \share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary\include, replacing:
with:
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: {} };
