cancel
Showing results for 
Search instead for 
Did you mean: 

Removing Categories option from Share site document library page.

shibu
Champ in-the-making
Champ in-the-making
I tried to remove "Categories" option from My-Site->Document Library page.

Commented following lines in <strong> categories.get.html.ftl </strong> contained in webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary.

 

         <#– <h2 id="${el}-h2">${msg("header.library")}</h2>
              <div id="${el}-treeview" class="category"></div>
          –>
 


It hides not only the Categories item, but also the top header menus like "My Dashboard, Sites, People, Reposiory and More" when we reach in the document library page, and it effects the working of "Tags" by not displaying any existing tags.

So, how can I hide "Categories" with out effecting any other things?
6 REPLIES 6

mitpatoliya
Star Collaborator
Star Collaborator
Where exactly you want to hide it screenshot will make it more clear.
If you just want to remove it form the document details page you can override the form which is responsible for showing all the properties and you can remove categories from that.

shibu
Champ in-the-making
Champ in-the-making
Thanx for the reply. The screen shot is attaching with this comment.
I just need to remove the "Categories" from the left side menus of Document Library page. Please let me know the file where we can remove this item.

[img]http://www.freeimagehosting.net/q5alc [/img]

shibu
Champ in-the-making
Champ in-the-making
Please tell me the form/file which is responsible for showing Categories option. I need to remove Categories option for all users including Admin.

Screen shot : http://www.freeimagehosting.net/q5alc

mitpatoliya
Star Collaborator
Star Collaborator
Remove
<@region id="categories" scope="template" />

from file documentlibrary.ftl
under
webapps\share\WEB-INF\classes\alfresco\templates\org\alfresco

shibu
Champ in-the-making
Champ in-the-making
It got worked perfectly.

jpotts
World-Class Innovator
World-Class Innovator
Editing an out-of-the-box file directly is definitely not recommended because you may complicate your upgrade path going forward. Hiding a region can now be done through the Share module mechanism. You can read this blog post to learn how: http://blogs.alfresco.com/wp/developer/2011/07/27/how-to-hide-content-on-an-existing-alfresco-share-...

Obviously what you did worked, and it is a quick fix, but if you do additional customizations, you should definitely look into the module approach.

Jeff