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.
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!