Can the NavigationMode 'Link' be used when using PH as a control?

May 28, 2011 at 1:45 AM

Hi,

I am using PhotoHandler in my MojoPortal install (where it is used as a control).  I would like to set the NavigationMode to Link.  Is this possible?

Thanks!

Coordinator
May 28, 2011 at 2:25 AM

Can't see why not. What happens when you try?

May 28, 2011 at 5:14 AM
Edited May 28, 2011 at 5:15 AM

The image links change from:

javascript:WebForm_DoCallback('ctl01$mainContent$ctl00$Album1','p~/Data/Sites/1/CIFolderGalleries/CommunityPhotoGallery/wallpaper-1.jpg',photoAlbumCallback,'ctl01_mainContent_ctl00_Album1',null,false)

 - to -

http://solution.mojoportal/Default.aspx?albummode=Page&albumpath=%7e%2fData%2fSites%2f1%2fCIFolderGalleries%2fCommunityPhotoGallery%2fwallpaper-1.jpg

However, The page that I have the control on is not 'Default.aspx', it is 'photo-gallery.aspx'.  I also tried, 'http://solution.mojoportal/photo-gallery.aspx?albummode=Page&albumpath=%7e%2fData%2fSites%2f1%2fCIFolderGalleries%2fCommunityPhotoGallery%2fwallpaper-1.jpg' which naturally didn't work either.

Coordinator
May 28, 2011 at 5:20 AM

You need to set the Path property on the control.

May 28, 2011 at 5:52 AM

Should I be setting it as follows?

<ci:album runat="server" ID="Album1" EnableViewState="false" NavigationMode="Link" Path="~/Data/Sites/CIFolderGalleries/CommunityPhotoGallery/fwallpaper-1.jpg">
Coordinator
May 28, 2011 at 5:56 AM

Don't point Path to a specific image, point it to the folder.