modify value of adf-content-metadata-card

cancel
Showing results for 
Search instead for 
Did you mean: 
Aymen_mansouri
Member II

modify value of adf-content-metadata-card

Jump to solution

Hello everyone,

I'm actually new to adf alfresco and i've been stuck with this problem for a while so i'll really need some help.

I want to modify  one of the properties in adf-content-metadata-card , for example in order to modify a property of type "date" adf suggests for me a calendar, for my case if the user would like to modify a property i want adf to suggest for me  a list of properties that are already saved in metadata  (while for now adf only suggests for an input text) adf.png

I tried to modify  app.config.json by adding the following code

"content-metadata": {

"presets": { ... }, ...

},

but it didn't work, so my main question is it possible to add the list of the values in app.config.json or there is another method??

Any help would be appreciated, thank you ...

1 Solution

Accepted Solutions
EddieMay
Alfresco Employee

Re: modify value of adf-content-metadata-card

Jump to solution

Hi @Aymen_mansouri,

Looks like ADF doesn’t display dropdown values even if you configured the content model with a list constraint. This is in the development pipeline but no timeline I'm afraid.

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

View solution in original post

4 Replies
EddieMay
Alfresco Employee

Re: modify value of adf-content-metadata-card

Jump to solution

Hi @Aymen_mansouri,

If you already have those properties in the metadata,  you can reveal them using this config, for example.
"content-metadata": {
"presets": {
"default": "*",
},

  Have you got the default aspect inside your presets object? However,  if it's using a custom model for the aspect you need to add it.

HTH,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
Aymen_mansouri
Member II

Re: modify value of adf-content-metadata-card

Jump to solution

Hi EddieMay,

Thank you for your reply, yes i actually tried what you proposed by using default * but it only load metadata selected not a dropdown list from metadata.

EddieMay
Alfresco Employee

Re: modify value of adf-content-metadata-card

Jump to solution

Hi @Aymen_mansouri,

Looks like ADF doesn’t display dropdown values even if you configured the content model with a list constraint. This is in the development pipeline but no timeline I'm afraid.

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
Patelvikash09
Active Member

Re: modify value of adf-content-metadata-card

Jump to solution

Hello @EddieMay ,

Thanks for your suggestions.
Is same feature now available in ADF?

Thanks,
Vikash

Thanks,
Vikash