4.0c removing UI actions works on windows but not in linux
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2012 01:08 PM
Hi,
I am customizing UI Actions Menus to reduce the actions that a user can take when dealing with a document. One of the UI Actions I want to remove is Publish which on windows does not show within either the document browse action menu or the document details action menu after editing the share-documentlibrary-config.xml. However, I deployed the share-documentlibrary-config.xml file from the windows instance to the linux instance location /opt/alfresco-4.0.c/tomcat/webapps/share/WEB-INF/classes/alfresco. When I restarted the linux server I see the Publish UI action in both UI Actions Menus.
Any clues would be of great help as I am new to alfresco.
Thanks
George
Here is how i am disabling the Publish UI action
<!– Publish document… set to negate="false" by ggates 2/22/2012–>
<action id="document-publish" type="javascript" label="actions.document.publish">
<param name="function">onActionPublish</param>
<evaluator negate="false">evaluator.doclib.action.isLocked</evaluator>
</action>
I am customizing UI Actions Menus to reduce the actions that a user can take when dealing with a document. One of the UI Actions I want to remove is Publish which on windows does not show within either the document browse action menu or the document details action menu after editing the share-documentlibrary-config.xml. However, I deployed the share-documentlibrary-config.xml file from the windows instance to the linux instance location /opt/alfresco-4.0.c/tomcat/webapps/share/WEB-INF/classes/alfresco. When I restarted the linux server I see the Publish UI action in both UI Actions Menus.
Any clues would be of great help as I am new to alfresco.
Thanks
George
Here is how i am disabling the Publish UI action
<!– Publish document… set to negate="false" by ggates 2/22/2012–>
<action id="document-publish" type="javascript" label="actions.document.publish">
<param name="function">onActionPublish</param>
<evaluator negate="false">evaluator.doclib.action.isLocked</evaluator>
</action>
Labels:
- Labels:
-
Archive
13 REPLIES 13

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2012 11:19 AM
Cool , i'm going to try and come back
thanks for your help
thanks for your help


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2012 07:40 AM
jeff,
works perfectly , thanks
if you have time , another question. If i want to disable this action only for few role
how to disable action only for " consumer + editor + contributor " if possible ?
:wink:
works perfectly , thanks
if you have time , another question. If i want to disable this action only for few role
<evaluator>evaluator.doclib.action.disableAction</evaluator>
how to disable action only for " consumer + editor + contributor " if possible ?
:wink:

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2012 08:30 AM
BY the way for people interesting in this post , you can read http://ecmarchitect.com/images/articles/alfresco-actions/actions-article-2ed.pdf from Jeff
hight level documentation for expert
hight level documentation for expert
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2012 12:27 PM
Okay we are self imploding… here is our issue with 4.0d and implementing the share-config-custom.xml. Originally I deployed the share-config-custom.xml to
/opt/alfresco-4.0.d/tomcat/webapps/share/WEB-INF/classes/alfresco/web-extension directory with the UI ACTIONS disabled.
another employee was tasked to implement SSO and he placed the share-config-custom.xml in the directory
/opt/alfresco-4.0.d/tomcat/shared/classes/alfresco/web-extension
I suggested we combine changes into one share-config-custom.xml and we placed it in the /opt/alfresco-4.0.d/tomcat/shared/classes/alfresco/web-extension directory. with SSO commented out the UI ACTIONS were disabled, however when he rolled his SSO changes into the file the UI ACTIONS are ignored. So which
directory should we be deploying to? Is it possible to have multiple share-config-custom.xml in different directories? When we combine the file and restart alfresco we get.
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provid
er.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
A server error has occured.
There are a number of reasons why this could have happened:
You have attempted to access a page that does not exist - check the URL in the address bar.
You have attempted to access a page that is not accessable to you, such as a private Site dashboard.
A valid page has been requested but the server was unable to render it due to an internal error - contact your administrator.
Return to your dashboard page
Alfresco Software Inc. © 2005-2011 All rights reserved.
any insight will be much appreciated and I think you in advance for your help.
George
/opt/alfresco-4.0.d/tomcat/webapps/share/WEB-INF/classes/alfresco/web-extension directory with the UI ACTIONS disabled.
another employee was tasked to implement SSO and he placed the share-config-custom.xml in the directory
/opt/alfresco-4.0.d/tomcat/shared/classes/alfresco/web-extension
I suggested we combine changes into one share-config-custom.xml and we placed it in the /opt/alfresco-4.0.d/tomcat/shared/classes/alfresco/web-extension directory. with SSO commented out the UI ACTIONS were disabled, however when he rolled his SSO changes into the file the UI ACTIONS are ignored. So which
directory should we be deploying to? Is it possible to have multiple share-config-custom.xml in different directories? When we combine the file and restart alfresco we get.
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provid
er.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
A server error has occured.
There are a number of reasons why this could have happened:
You have attempted to access a page that does not exist - check the URL in the address bar.
You have attempted to access a page that is not accessable to you, such as a private Site dashboard.
A valid page has been requested but the server was unable to render it due to an internal error - contact your administrator.
Return to your dashboard page
Alfresco Software Inc. © 2005-2011 All rights reserved.
any insight will be much appreciated and I think you in advance for your help.
George
