Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Help with loading content View modes: 
User avatar
Member
Member
lwhittemore-emh - 3/6/2013 8:56:34 AM
   
Help with loading content
I would like to be able to do something like this for a photo gallery? Has anyone done this yet and can offer some advice to a non-developer.
http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/

User avatar
Member
Member
lwhittemore-emh - 3/6/2013 10:06:48 AM
   
RE:Help with loading content
also, what is the fastest way to get resized images from the media library.

<%@ Register Src="~/CMSModules/MediaLibrary/Controls/LiveControls/MediaFilePreview.ascx" TagName="MediaFilePreview" TagPrefix="cc1" %>

<div class="item">
<a href="<%# HTMLHelper.HTMLEncode(MediaLibraryFunctions.GetMediaFileUrl(Eval("FileLibraryID") ,Eval("FilePath"), Eval("FileGUID"), Eval("FileName"), GetDataControlValue<bool>("UseSecureLinks"), true)) %>" rel="shadowbox[gallery]" title="<%# Eval("Name") %>">
<cc1:MediaFilePreview ID="filePreview" runat="server" Width="200"/>
</a>
</div>


This is how I am doing it now and the MediFilePreview seems to be really slow.

Here is a link to the page that I am using it on
http://173.203.24.234:8002/Our-Community/Photo-Gallery.aspx

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 3/6/2013 11:10:14 AM
   
RE:Help with loading content
Why don't you use an Image Gallery document type? By default it does all the image sizing/resizing you need and you can use the built-in LightBox webpart to view the images.

Take a look here at this example.

You can also check here for methods you can use in your transformations to get and resize images.