Can a column in the damadmin (title) be made readonly? | Adobe Higher Education
Skip to main content
anjali_biddanda
Level 4
October 16, 2015
Beantwoord

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

  • October 16, 2015
  • 4 reacties
  • 2449 Bekeken

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.

Er kunnen geen reacties meer worden geplaatst op dit onderwerp.
Beste antwoord door anjali_biddanda

editable : false did the job.

4 reacties

anjali_biddanda
anjali_biddandaAuteurAntwoord
Level 4
October 16, 2015

editable : false did the job.

Naveen_AEM_dev
Level 4
October 16, 2015

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!

anjali_biddanda
Level 4
October 16, 2015

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?

anjali_biddanda
Level 4
October 16, 2015

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.