Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 10
Level 3
anjali_biddanda
Level 3

Likes

17 likes

Total Posts

69 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Validate 10
Level 3
anjali_biddanda
Level 3

Likes

17 likes

Total Posts

69 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Give Back 5
Give Back 3
Give Back
View profile
anjali_biddanda
Level 3

15-10-2015

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 3
anjali_biddanda
Level 3

Likes

17 likes

Total Posts

69 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Validate 10
Level 3
anjali_biddanda
Level 3

Likes

17 likes

Total Posts

69 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Give Back 5
Give Back 3
Give Back
View profile
anjali_biddanda
Level 3

15-10-2015

editable : false did the job.

Answers (3)

Answers (3)

Avatar

Avatar
Validate 10
Level 3
anjali_biddanda
Level 3

Likes

17 likes

Total Posts

69 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Validate 10
Level 3
anjali_biddanda
Level 3

Likes

17 likes

Total Posts

69 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Give Back 5
Give Back 3
Give Back
View profile
anjali_biddanda
Level 3

15-10-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.

Avatar

Avatar
Validate 10
Level 3
anjali_biddanda
Level 3

Likes

17 likes

Total Posts

69 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Validate 10
Level 3
anjali_biddanda
Level 3

Likes

17 likes

Total Posts

69 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Give Back 5
Give Back 3
Give Back
View profile
anjali_biddanda
Level 3

15-10-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?

Avatar

Avatar
Validate 10
Level 3
Naveen_AEM_dev
Level 3

Likes

21 likes

Total Posts

70 posts

Correct Reply

5 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
Naveen_AEM_dev
Level 3

Likes

21 likes

Total Posts

70 posts

Correct Reply

5 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Naveen_AEM_dev
Level 3

15-10-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!