Hi
1. Can we show/hide the few metadata fields and few disable (graout) programmatically? Does anyone have any example or article url?
Thanks
~S
Solved! Go to Solution.
Views
Replies
Total Likes
Option 1:
Option 2:
Option 3:
Views
Replies
Total Likes
Can you share more details about: where do you want to show/hide the metadata?
Views
Replies
Total Likes
Hi Amit,
Basically our original requirement is to show/hide few metadata fields of DAM assets based on the users. There are no way to do this OTB in AEM that's why we are trying/looking to implement it pro-grammatically if it is possible.
We are able to disable it by setting the property "disabled=true" in classic UI view. But looking to hide the properties.
Thanks
~S
Views
Replies
Total Likes
The only way I can think of is to treat these assets as nodes and properties and use the AEM JCR to modify properties. So you will need to build a custom AEM service that uses the JCR API to do this.
Views
Replies
Total Likes
Option 1:
Option 2:
Option 3:
Views
Replies
Total Likes
This help us.Thank you so much.
One thing, In Option 2, My understanding is that if for same assets few user want to see few metadata fields (like title, description, approved status etc) and few others users only want to see only the title and description not the approved status fields. Then in this case we need to maintain that assets in two separate folders in to the DAM, right?
Thanks
~S
Views
Replies
Total Likes
You can control tabs using groups:
Maybe you can try this with fields.
I hope this helps.
Views
Replies
Total Likes
yes,you are right.
I think if you set correct permissions then i am sure you need not to hide them Rest it depends on your business requirements. Moreover one though if you have a limited number of user group i.e author, approver then you can override the HTML code for this asset editor and write a servlet to get the user roles and based on the user roles you can render the html code for this again that will take some extra efforts and yeah If you got your solution then mark this as answered please.
Thanks,
Amit
Views
Replies
Total Likes
This could be done with the help of listeners as well. Write a widget listener so that based on user group you have hidden = true/ hidden = false.
Views
Replies
Total Likes
Hi All,
Thank you so much for valuable solution. These all help us.
Thanks
~S
Views
Replies
Total Likes
Views
Like
Replies