Alfresco – Desktop Action
How’s your Alfresco doing?
In my case, we’re going for implementation after weeks of testing and some modifications.
Well, I don’t want to see those CheckIn/Checout in every folder (and my user’s agree with me). My users keeps asking me about it (wishper: I changed the File Server for some users without their knowledge for testing. Don’t do this or your head will ROLL!). For them Alfresco is like the same Windows File Server. I like it that way for simplicity and I will introduce more functionality when we role out the entire Alfresco system.
NOTE: To disable the feature, you have to put a comment on each property.
<– Enclosed in this arrow are comments
–>
1st – I want to change the Alfresco name into my company name.
Crate a file /opt/alfresco/tomcat/shared/classes/alfresco/extension/webclient_en_US.properties and put your company name
# cd /opt/alfresco/tomcat/shared/classes/alfresco/extension/
# vi webclient_en_US.properties
and put
company_home=Your Company Name
2nd – disable the URLFileName and the Desktop actions. These are the extra files that you see in every folder and everytime you create a folder. For me I don’t see them helping my users to deal with their files/folder.
Edit the /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/fileServers/default/file-servers-context.xml
# cd /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/fileServers/default
# vi file-servers-context.xml
Look for the following and comment it like below
<!– Add a URL file to each folder that links back to the web client –>
<!–
<property name=”URLFileName”>
<value>__Alfresco.url</value>
</property>
–>
and for Desktop Actions
<!–
<bean>
<property name=”name”>
<value>CheckInOut</value>
</property>
<property name=”filename”>
<value>__CheckInOut.exe</value>
</property>
</bean>
<bean>
<property name=”name”>
<value>JavaScriptURL</value>
</property>
<property name=”filename”>
<value>__ShowDetails.exe</value>
</property>
<property name=”scriptName”>
<value>alfresco/desktop/showDetails.js</value>
</property>
</property>
<property name=”attributeList”>
<value>anyFiles</value>
</property>
<property name=”preprocess”>
<value>copyToTarget</value>
</property>
</bean>
–>
Restart your Alfresco and check your alfresco in windows file explorer.
How was it? Now, it’s just like the old Windows File Server right?!
Better to override than alter files in WEB-INF which will get nuked if you redeploy/update. If you copy the XML file and move it to:
TOMCAT_HOME/shared/classes/alfresco/extension/subsystems/fileServers/default/default/custom-file-servers-context.xml
This will stick for future redeployments/updates.
VERY helpful post Thanks!