How to remove option for Friendly links in media library?

Tim Valdez asked on August 20, 2024 22:47

Is there a way to remove the option of even seeing the Friendly link in the media library when a web editor is selecting images or documents? I have the box checked in Settings/Content/Media/Use Permanent URLs but it still shows the editor the friendly link which means they can jsut copy it into the webpage and use it. I want to make that friendly link text go away from the media library when an image or document is selected above. Screenshot of CMS media library for clarification. Any ideas? CMS ML

Correct Answer

Brenden Kehren answered on August 28, 2024 16:40

This would require you to modify the source Kentico files. If you look in the CMS project under /CMSModules/MediaLibrary/Controls/MediaLibrary/MediaFileEdit.ascx you'll find about line 28 there is a placeholder for the direct path.

My suggestion would be to set the visibility of fields to false. If you remove them it will cause errors.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Tim Valdez answered on August 28, 2024 17:21 (last edited on August 28, 2024 17:24)

THANK YOU SO MUCH!! I just edited that file and sure enough it worked exactly as what I needed! It was line 39 in my code FWIW.

Any chance you could tell me where to look to add text next to the [Upload] button in the top frame to display "Do not upload images into the Documents folder!" to remind our web editors? Actually, to be fancy, it would be great to be able to see the currently-selected library in the left frame and if it is "img" then says text above, else if it is "Documents" then say to not upload images...may require some fancy Javascript I'm assuming but not sure even what file to begin looking at.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.