cancel
Showing results for 
Search instead for 
Did you mean: 

display json properties in content-metadata-presets

ssaadaoui
Champ in-the-making
Champ in-the-making

I customize a content-metadata-presets and it works perfectly . my problem is: I like to display a json propety of a document like a many properties.

actually I have : 

signers:

 [{"isInternal":false,"firstName":"Mark","lastName":"jacksson","coordinate":"0,0,595,65","telephone":"","id":"","page":1,"email":"***","username":"","order":2}]

 but my goal is to show like: 

signers:

isInternal:false      

firstName:Mark

lastName:jacksson

coordinate:0,0,595,65

Do you have any solution  to resolve this problem. 

Thank you  

3 REPLIES 3

ssaadaoui
Champ in-the-making
Champ in-the-making

to more explain my problem, there is what i have now in metadataimage

but i like show like :

>isInternal: true

>firstname:... 

fcorti
Elite Collaborator
Elite Collaborator

Hi Saadaoui,

Without customizations, you cannot format a JSON string / field in the card viewer.
Infact, if you would go in edit mode, how the JSON string could be edited being formatted?

I see two options here:
1) Design a different strategy for the metadata. As an example you could use some metadata and value them with the content of the JSON while you are filling the JSON itself.

2) Customize the viewer to manage the JSON layout in the field.

I hope this will help.

ssaadaoui
Champ in-the-making
Champ in-the-making

Thank you for your answer 

If I choose to Customize the viewer to manage the JSON layout in the field.

Do you know what is the best  methode can i use from an external module (I can't edit file of ACA source direct, I must do it from external module )

Getting started

Explore our Alfresco products with the links below. Use labels to filter content by product module.