Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Can a column in the damadmin (title) be made readonly?

Avatar

Level 4

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.

1 Accepted Solution

Avatar

Correct answer by
Level 4

editable : false did the job.

View solution in original post

4 Replies

Avatar

Correct answer by
Level 4

editable : false did the job.

Avatar

Level 4

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!

Avatar

Level 4

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?

Avatar

Level 4

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.