cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO:hide the 'manage-rules'

qoitecover
Champ in-the-making
Champ in-the-making
Recently,I've learned how to hide many kinds of parts on Alfresco 5.0d.

However,I have got a another problem when I tried to hide the "manage-rules" coding the file called "share-documentlibrary-

config.xml"—>When I delete the code: "Folder-manage-rules",Okay that selection "manage-rules" for folder is hidden.But the

selection "manage permission" is gone!What to do to solve this maybe confliction?

My problem has been uploaded as two screenshots below.

Thanks A Lot!

Regards
2 REPLIES 2

scouil
Star Contributor
Star Contributor
Hi,

First a quick note about the extension mechanism.
From what I can understand you directly modify Alfresco files. As this would work, it would fail if you need to redeploy your application and would be a pain to upgrade.
Alfresco has some cleaner ways to extend that you might want to look at:
http://docs.alfresco.com/5.0/tasks/share-customizing-custom-config-file.html

Now down to your real problem.
Commenting that action out is not the cleanest solution. For example if you browse down that same file you'll see that there are 2 sections, folder-browse and folder-details that try to include this action that you deleted. So it might be the root of your problem.
Remove the action from those places instead, or even better add proper permission to the action.
This would limit the availability of this action to administrators:
<evaluator>evaluator.doclib.action.isAdmin</evaluator>

This would disable it altogether:
<evaluator>evaluator.doclib.action.disableAction</evaluator>

So you would end up with something like:

         <action id="folder-manage-rules" type="pagelink" label="actions.folder.rules">
            <param name="page">folder-rules?nodeRef={node.nodeRef}</param>
            <evaluator>evaluator.doclib.action.disableAction</evaluator>
         </action>

qoitecover
Champ in-the-making
Champ in-the-making
My thanks to you.
I've learned a lot of knowledge from you,and your description is so well and clear.
thanks thanks thanks!!!!
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.