display json properties in content-metadata-presets

cancel
Showing results for 
Search instead for 
Did you mean: 
ssaadaoui
Partner

display json properties in content-metadata-presets

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
ssaadaoui
Partner

Re: display json properties in content-metadata-presets

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

 

 

but i like show like :

 

>isInternal: true

>firstname:... 

fcorti
Alfresco Employee

Re: display json properties in content-metadata-presets

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
Partner

Re: display json properties in content-metadata-presets

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 )