-
1. Re: Customizing metadata properties in DAM
Sham HC Oct 21, 2012 8:57 PM (in response to Bayani Portier)Recently there was a similar discussion internally & suggestion came from group was
1. Create & confiure an acl.
OR
2. using Listener on the particular field you want to hide and then hide the field based on the path. To do this, create a listeners node of type nt:unstructured under the field (e.g. /apps/dam/content/asseteditors/image/jpeg/formitems/person/listeners) and set the beforeloadcontent property to [1]. This will hide this field for assets under /content/dam/geometrixx. You could adjust this to meet other requirements.
Verify 2 & let us know how it goes.
[1] function(f, r, p) { if (p.indexOf("/content/dam/geometrixx/") == 0) { f.hide(); } return true; }
-
2. Re: Customizing metadata properties in DAM
Bayani Portier Oct 24, 2012 8:46 PM (in response to Sham HC)Thanks for responding so quickly.
[1]
I am not quite sure how an acl would be appropriate in my case here, as it has nothing to do with users, but should there be difference in rights, I can definitely see where it is applicable.
[2]
Your function(f, r, p) { if (p.indexOf("/content/dam/dpost/providers") == 0) { f.hide(); } return true; } function is almost right.
function(f, r, p) { if (p.indexOf("/content/dam/dpost/providers") != 0) { f.hide(); } return true; } Works a treat, and gives me exactly what we wanted.
Thanks again for your help.
-
3. Re: Customizing metadata properties in DAM
maruthid May 22, 2013 12:53 AM (in response to Sham HC)Hi Sham,
I want to add some more functionality to it. Want to change the label of the metadata field instead of hiding it.
Can we change the label of the field itself.
something like this I tried
f.fieldLabel = 'newfieldlabel'
But it failed. Am I doing some thing wrong in setting field label?
And one more thing in that method we are comparing path. Instead I want to compare matedata of that asset. Can you tell me how can I access assets metadata through record parameter (r).
Thanks,
Maruthi
-
4. Re: Customizing metadata properties in DAM
Sham HC May 27, 2013 5:03 PM (in response to maruthid)Hi Maruthi,
You might need to extend field to define setFieldLabel & then set the value to get effective.
http://www.sencha.com/forum/showthread.php?42916-Changing-fieldLabel-dynamically-in-TextFi eld
Thanks,
Sham



