Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Limiting the Media Library View modes: 
User avatar
Member
Member
beau.cowan-rrpartners - 8/8/2013 12:01:46 PM
   
Limiting the Media Library
I've tried going through the development guide to see if I can do this, and I haven't found anything for it, so I figured I'd try here.

I have some clients that don't use the system properly, no matter how many times we educate them. Therefore, we need to eliminate their ability to adjust the size of an image at the media selection screen.

I haven't found anything in roles that would accomplish this, and I really don't want to adjust the basic files since we are going to be doing an upgrade soon. We are currently using v6.0.23(SP1)

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 8/9/2013 2:56:40 PM
   
RE:Limiting the Media Library
Hello,

Could you please be more specific about which part of system are you exactly talking? Do you think the image size when user is inserting the image into the editable text region?

Best Regards,
Martin Danko

User avatar
Member
Member
beau.cowan-rrpartners - 8/9/2013 3:56:53 PM
   
RE:Limiting the Media Library
Primarily when you use the Media Selection feature. Where you can view what's in your media libraries, select the preferred image/media file and be able to adjust the width and height from there.

It is the width and height that I want to disable so that they can see what the dimensions are, but not be able to adjust them.

The main reason why I want to limit this is because they are either using the system wrong when uploading an image, or there is something else causing an error to happen in the system. There is a double query string occurring, which is breaking the CMSDesk to where we cannot even select a new media file without having to delete the webpart entirely.

User avatar
Member
Member
kentico_sandroj - 8/10/2013 12:06:53 PM
   
RE:Limiting the Media Library
Hello,

To disable this functionality you would modify:

~\CMSModules\MediaLibrary\Controls\Dialogs\LinkMediaSelector.ascx.cs

Around line 635 is where those properties are set.

Please let me know if you have any questions.

Regards,
Sandro