cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Form for Folder Properties

d_gruber
Champ on-the-rise
Champ on-the-rise
Hello,
I've read so many sources about how to add custom metadata and everything is very confusing and unclear and nothing brings it straight to the point so
I hope someone here can help me:

I want to have a metadata form when I edit a folder with documents in it which has custom fields that contain for example a date field or text fields or checkboxes.
I really don't have a bloody clue what I have to do. I don't know if I have to search for metadata, aspects, forms or models. It is really confusing!


I hope someone can make it clearer… the documentation about it is really not a help…

Best regards
David
5 REPLIES 5

romschn
Star Collaborator
Star Collaborator
If you browse a folder in alfresco-share, there is already edit metadata action available there which shows the out-of-the-box metadata for a folder.
What is your requirement? Do you want to add additional metadata property for folder is it?

d_gruber
Champ on-the-rise
Champ on-the-rise
Yes that's basically what I want… I want to add custom metadata for that folder:

Some Metadatas like:
Date, ID and so on….

romschn
Star Collaborator
Star Collaborator
You can apply an aspect (containing the properties) on the folder, then modify the config entry for folder content type in your share-config-custom.xml. Take a look at share-form-config.xml to get understanding of how folder entry is defined for it under following section
<config evaluator="model-type" condition="cm:folder">
this one is for creating new folder and 
<config evaluator="node-type" condition="cm:folder">
this one is for existing nodes. Accordingly you can put the entries for your custom properties.

d_gruber
Champ on-the-rise
Champ on-the-rise
Thanks for your reply, but how do I apply an aspect on the folder and what do I have to modify?

romschn
Star Collaborator
Star Collaborator
Looks like you posted the same question on a different forum thread as well. Here is the reply to it.
https://forums.alfresco.com/comment/146458#comment-146458

Kindly do not post the same question/topic on different threads. 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.