cancel
Showing results for 
Search instead for 
Did you mean: 

Customize MetaData Folder Level

shibasis
Champ in-the-making
Champ in-the-making
HI,

We are working on a Customization for Metadata in Share.
We want to apply metadata to specific Folder Level,but currently if we add metadata , it is applicable to all Folder's.

Invoice Folder Metadata>> invoice

should nt be visible in other Folders.

Do Alfresco Support this Feature.

Regards
Shibasis
6 REPLIES 6

afaust
Legendary Innovator
Legendary Innovator
Hello,

yes, Alfresco supports this feature by providing the option to define specialized sub-types of cm:folder with their distinct set of metadata, or by using aspects to apply specific metadata only to individual folders, not all of them. If you are using aspects, you should make sure that you are not forcing the fields originating from the aspects in your cm:folder form configuration, or they will effectively apply to all folder objects. Instead use the manage aspects action to apply your aspect and have that automatically add your fields into the "enhanced" folders.

Regards
Axel

shibasis
Champ in-the-making
Champ in-the-making
Thanks For Your Reply..
I am able to apply aspect to Folder Metadata.
But One Issue i am facing in Searching same metadata.
in Advance Search I am able to search ,but not in normal search.

1.Do I have to enable Search?
2.I have to restrict search within Folders?

Can You please Guide me.

Thanks
Shibasis

afaust
Legendary Innovator
Legendary Innovator
Hello,

if you want to have the default search find objects (folders or files) by custom metadata, you need to adapt the default search template to include that metadata in your search. Please see <a href="https://issues.alfresco.com/jira/browse/ALF-9594">the ticket that added the configuration option</a> for details.

Regards
Axel

d_gruber
Champ on-the-rise
Champ on-the-rise
I'm sorry for posting in this thread but how exactly can I add custom aspects to folders vor metadata?

romschn
Star Collaborator
Star Collaborator
If you want to do it programatically you can use NodeService's addAspect method.
If you want to do it through UI, you can do it through Add Aspect action. For that you will have to register the aspect as other existings aspects are registered in share-documentlibrary-config.xml.

d_gruber
Champ on-the-rise
Champ on-the-rise
Hey, I still don't get what to do… is it possible to give me short steps what I have to change to achieve custom fields for my properties of my folder…?