Dear All,
I am working on a mock-up and come up with the following issue:
I would like to replace the default metadata in the document library with the custom properties, appr. 6 of them
The content model is working fine, properties are displayed when document details are dispalyed
Is there a way to achieve this?
Currently using Alfresco Community Edition 5.2 (all-in-one)
Thanks alot for your help,
Zsolt Putnoky
You should define a new form configuration snipped inside the file:
<ALFRESCO_HOME>/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml
This file will override all the default forms that you see in Share.
Take a look at the following tutorial:
Share configuration for custom types and properties | Alfresco Documentation
Hope this helps
Hi Piergiorgio,
Thanks for your reply. I have checked the tutorial already. My issue is that as this is a mock-up I do not have the full development environment in place. I tried to achieve this by modifying XML files.
Here is the tutorial I used today:
https://marcelloborsetto.wordpress.com/2013/07/04/show-custom-metadata-in-alfresco-file-list/
I guess you will understand more than I do as I do not speak Italian at all (guess you do). So, did the tutorial, catalina out is okay, no error message, but no property displayed. My main issue was/is that I do not know where to specify the content type in the code examples.
I added the code into the share-documentlibrary-config.xml as I thought this is the file rendering the view. I will try to add it to the file you mentioned.
Thanks alot once more,
Zsolt Putnoky
Hi Piergiorgio,
Solved the issue! Did a typo. Now I need to figure out how to display more than one property in the same line, then all is good for this issue.
Have a good weekend,
Zsolt Putnoky
I don't know if you were able to solve your problem, but in order to put more than one property in the same line, all you have to do is to put it after the first one you added.
<line index="20" id="descrizioneTec" evaluator="evaluator.doclib.metadata.descrizioneTec">{descrizioneTec}</line>
becomes
<line index="20" id="descrizioneTec" evaluator="evaluator.doclib.metadata.descrizioneTec">{descrizioneTec}{otherProperty}</line>
Hi Douglas,
Thanks for the reply. Managed to solve it using something similar to what you proposed. Now I will try to combine more than one property into one evaluator. Have around 10 to check for each document, so I will create property groups and one evaluator for each group. Hope to reduce the code this way.
Regards,
Zsolt Putnoky
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.