Hi,
In the damadmin, on the right hand pane, if you add the title column, it's editable. How can i make this readOnly?
I've tried setting readOnly=true / disabled=true as property for the 'title' gridcolumn -> /apps/wcm/core/content/damadmin/grid/assets/columns/title to override /libs/wcm/core/content/damadmin/grid/assets/columns/title.
No luck.
Solved! Go to Solution.
Views
Replies
Total Likes
editable : false did the job.
Views
Replies
Total Likes
editable : false did the job.
Views
Replies
Total Likes
Hi,
If I understand your problem right, you want to make the title field in the dam asset editor uneditable.
This can be done by extending the form items in the asset editor (inside /libs/dam/content/asseteditors) and setting additional properties / even adding additional form elements to the current collection.
To do this, follow the below steps,
Create a folder 'dam' under "/apps" of the type nt:folder.
Create a folder 'content' under "/apps/dam" of the type sling:Folder
Create a folder 'asseteditiors' under "/apps/dam/content/" of the type sling:Folder
Create a folder 'image' under "/apps/dam/content/asseteditors" of the type sling:Folder
Now copy and paste the '/libs/dam/content/asseteditors/image/formitems' node under '/apps/dam/content/asseteditors'
You will be able to see different form items inside this node and you can add the below property to the title field,
Name - disabled; type- Boolean; value- true
Now refresh the asset editor form in the DAM admin and you will be able to see that the title field is infact disabled.
The downside here is that this does not allow you to enter the title at all, even when you upload the asset for the very first time using the DAM admin. The only work around for this to write your own DAMUploadUtility / DAMUploadServlet and set the title field programatically in the metadata folder along with the other metadata.
Hope this helps. Do repost in this forum if you find a better approach!
Views
Replies
Total Likes
Hi Naveen, this question was not answered as per my reply to you. Please would you remove the "solved" status, so I can still get replies/suggestions?
Views
Replies
Total Likes
Hi Naveen, thanks for your reply. However, what you've suggested above is making the field disabled on the dam asset editor form itself, not in the right hand panel of the damadmin.
In damadmin right panel you can add/remove columns. When the title column is added, the contents of it are editable - i don't want this to be the case. (see attachment)
Appreciate your feedback though.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies