API Questions on Kentico API.
Version 5.x > API > Collapse properties tab by default for Media Library View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
Nathoushka - 2/1/2012 10:07:11 AM
   
Collapse properties tab by default for Media Library
One of our client asked us if it is possible to collapse the "Properties" panel by default when browsing the Media Library. We still want to be able to expand/collapse if possible.

Currently, every time my client logs in and go in the Media Library, she's forced to close the Properties panel since it is of no uses for her. Aslo, since she has over 100 files for some folders, it takes up a lot of space.

Is there a way to do this?

Thank you.

Using: Kentico v5.5.4115 R2

User avatar
Kentico Support
Kentico Support
kentico_janh - 2/2/2012 6:10:10 AM
   
RE:Collapse properties tab by default for Media Library
Hello,

Actually, you can simulate that first click, so the "Properties" panel will be collapsed by default. The file you need to edit is ~\CMSModules\MediaLibrary\Controls\MediaLibrary\MediaLibrary.ascx and this file contains a block of javascripts, so please just add there the following code:

$j(document).ready(function () {
$j('.DialogResizerArrowV').click();
});


Best regards,
Jan Hermann

User avatar
Certified Developer v7
Certified  Developer v7
Nathoushka - 2/2/2012 10:10:28 AM
   
RE:Collapse properties tab by default for Media Library
Thank you!

This worked perfectly!