cancel
Showing results for 
Search instead for 
Did you mean: 

[share]Can I undisplay Imap Attachement folder

junminya
Champ on-the-rise
Champ on-the-rise
Hello, everyone.

We're using Alfresco Community edition 4.2.
I wanna delete or undisplay Imap Attachement folder.

But i cant do it,
If i delete it,,
It will be automatically created when apache restart.

If i delete all permissions,,,
After apache restart, Permission is automatically activated to every one.

Tell me , can i do it.

4 REPLIES 4

iblanco
Confirmed Champ
Confirmed Champ
If you add aspect "sys:hidden" to a content or folder it is not shown on Alfresco Share's listings (In Alfresco Explorer either I think).

I have a script called "hide.js" in Data Dictionary/Scripts with this simple content:
<javascript>
document.addAspect("sys:hidden");
</javascript>

And then in Alfresco Explorer I execute this script from the "Run action" command in the details view of Alfresco Explorer for the document or folder I want to hide.

By the way, changing permissions of system created folders might not be a good idea. One of our customers decided to change Data Dictionary permissions to hide a folder and it created quite a big mess, hiding it seems much less risky.

Hope it helps.

rjohnson
Star Contributor
Star Contributor
I didn't know about this, but it sounds very useful. Am I correct in assuming that folders / documents with this aspect are not show, but are still returned in a search (lucene or otherwise) and by functions like getChildByNamePath etc?

Thanks

Bob Johnson

You are right Bob, you can still search them using the API. Search results in Alfresco Share, listings etc… seem to exclude documents with this aspect so they don't appear but if you search directly with the node browser or with the API they appear.

If you have the link to the folder or content itself you can still visit it and you can make things like search for a content inside of a hidden folder, only the folder is hidden not its content. Them, from the details view of the content you can navigate to the hidden folder.

Another useful trick we found is that in Alfresco Share if you point the browser to http://localhost:8080/share/page/repository#filter=notvalid it seems to default to a list of the company home that it is not filtered at all so you even see the folders that you might have hidden there (for example if you have hidden Data Dictionary). But that's something quite by chance, it might not work in other versions than 4.2.c



mitpatoliya
Star Collaborator
Star Collaborator
Yes this aspect should help in hiding it.This aspect is also used by alfresco to hide the rule folder from the UI.
And yes if you try to do it via permissions contents from that folder will also not be accessible to other users so this seems to be good idea.
But I think you should be able to remove the permissions you might be missing that inherit permission check box.
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.