Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Secure Media Libraries View modes: 
User avatar
Member
Member
tspring-allegra - 3/11/2010 10:48:45 AM
   
Secure Media Libraries
Hi

I’ve setup a secure media library, as shown in: http://devnet.kentico.com/docs/devguide/secured_vs__unsecured_libraries.htm?zoom_highlightsub=media%2Blibrary

But how do I then insert a link to the files in the secure library?

If I try to add a link to a file on a site page using the CMSDesk Insert/Edit Link function, then select the file from the secure media library and click Insert. It inserts the direct URL as a link, which setting up the secure media library above means the user is denied access! How do I add the secure link to the file from the CMSDesk?

Thanks,
Tim

User avatar
Member
Member
tspring-allegra - 3/16/2010 6:47:13 AM
   
RE:Secure Media Libraries
Does anyone have any ideas, is this a bug in 4.1?

The only way I can insert a database 'getmedia' link (i.e. Permanent link) to a file in a Sercure Media Library is to broswe to the media library and copy the link from the File properies. Ideally i'd like to do this from the CMSDesk Insert Link function

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/18/2010 9:47:37 AM
   
RE:Secure Media Libraries
Hello,


please use the settings:

Site manager -> Settings -> Media libraries -> (Site: <your site> ->) Use permanent URLs: checked

Then the dialogs at CMSDesk use the permanent URLs (getmedia links) automatically.

Does it help?


Best regards,
Helena Grulichova

User avatar
Member
Member
tspring-allegra - 3/18/2010 10:12:59 AM
   
RE:Secure Media Libraries
Hi

I dont have this option in the location you described, i'm using Kentico Version: 4.1 Build: 4.1.3518

User avatar
Member
Member
tspring-allegra - 3/18/2010 10:15:22 AM
   
RE:Secure Media Libraries
Actually I just spotted it is available under (global), but not under specific local sites. Is there no way to change this for a single local site only?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/18/2010 10:41:37 AM
   
RE:Secure Media Libraries
Hi,


I have this option even for sites in the 4.1 version. Could you please check it once again? (By default it is disabled but if you uncheck Inherit from global settings it works.)


Best regards,
Helena Grulichova

User avatar
Member
Member
tspring-allegra - 3/18/2010 11:30:36 AM
   
RE:Secure Media Libraries
Under a local site settings I dont even have the option, I only have the 4 below:

Media file hidden folder
Media file preview suffix
Media file allowed extensions
Check files permissions

But under (global) i have the 6:

Media file hidden folder
Media file preview suffix
Media file allowed extensions
Check files permissions
Use permanent URLs
Media libraries folder

The site was imported into 4.1 from an export created in 4.0, this couldnt be part of the problem could it?

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 3/20/2010 6:17:48 AM
   
RE:Secure Media Libraries
Hello,

I think this issue may be caused by you exported site from version 4.0 to version 4.1. It's recommended to upgrade site using upgrade procedure that you can download from http://www.kentico.com/Download/Upgrades.aspx page.

If you have already made any modifications to imported site so you can't upgrade original site again, you could add missing site setting for your site manually in DB. Settings key are stored in CMS_SettingsKey. Global settings have 'null' value in SiteID column. To create the same setting for site you can just copy the global record and set the SiteID to ID of appropriate site. Particularly, the 'check files permissions' setting for media library has following value in KeyName column: CMSCheckMediaFilePermissions

Best Regards,

Martin Dobsicek

User avatar
Member
Member
tspring-allegra - 3/23/2010 5:26:17 AM
   
RE:Secure Media Libraries
Thanks for the help!

We had a few other sites running that were created in 4.1, so I just manually copied one of the CMSCheckMediaFilePermissions settings from the CMS_SettingKey table and changed the SiteID. The option displays fine in the 4.0 imported site now :)