Go back to mobile site
API and Internals
Design and CSS styles
Export and Import
Newsletters and E-mails
Security and Membership
Tags and Categories
Web parts & Controls
How can I display media library files with the lightbox effect?
You can use the
Media file data source
web part in cooperation with the
Media gallery - file list
web part to view all files within the appropriate media library. This media library can be chosen within the Media gallery – file list web part properties.
How to keep the direct URL when changing the dimensions of a media library image instead of the permanent one
The image is resized to a smaller version, because it saves bandwidth. During this resizing, our internal file processing needs to be used, and that’s why the URL is automatically changed to a permanent one. You can override this behavior by setting the getPermanent variable, in the method
, within the file
, to false. With this setting, CSS styles will be used to resize the image.
How to make Media libraries clickable in MediaLibraryViewer web part
You can modify the transformation so it generates also link and not only preview image. The link could point to some document with Media Gallery web part and could contain
as query string parameter.
~/GalleryDetail.aspx?libname=<%# Eval("LibraryName") %>
The Media Gallery web part would get the Library name and use it. You can use following macro in Library name attribute of Media Gallery web part:
How to show only certain folders in media library "Media Gallery File list" webpart
At first you need to place
Media files data source
webpart to the page where you want to use
Media Gallery - File List
. Then you will just use its
Now if you want to show only certain folder you may need define
webpart, for example:
FilePath LIKE N'folder/%' AND FilePath NOT LIKE N'folder/%_/%'
Please note 'folder' is folder which is under current media library. This will show files from 'folder' path and not other else.
I’m not able to see media library files in my media library web part.
In this case it is recommended to check you media library security permissions according to following documents:
Visitors download the full size of media files instead of downloading the resized version from server on live site.
The system uses the resized versions of media files only if you use the permanent URLs. Please see the settings in:
Site manager -> Settings -> Media libraries -> Site: <your site> -> Use permanent URLs
If the checkbox is unchecked it does not use the resized images from disk. If you check the checkbox it can greatly improve the page performance.
I'm receiving error when importing files after making changes described in 'Defining custom media types' article
There is mistake in sample code in documentation. We are very sorry for this inconvenience. Basically you only need to change following line in example:
if (this.Type.TrimStart('.').ToLower() == "flv")
if ((this.Type != null) && (this.Type.TrimStart('.').ToLower() == "flv"))
Content Management System
Social Networking Software
Online Marketing Solution
| Copyright © 2004-2013 Kentico Software | Powered by
Share with Friends: