Opening an image in image gallery

Posted by Community Admin on 03-Aug-2018 12:52

Opening an image in image gallery

All Replies

Posted by Community Admin on 17-Mar-2011 00:00

Hi,

I am building a custom control at the minute to do some bits and bobs.  One of the things I would like to do is to link to an image but instead of it just opening the image.  I would like it to pass the ID to the image widget so the image is opened up on my gallery page...in the widget.

Is there a way to do this? If yes, I will extend this functionality across the board.

If I am not being very clear please let me know and I will try to better re-phrase her. 

Thanks in advance.

Posted by Community Admin on 22-Mar-2011 00:00

Anybody got any ideas on this?

Posted by Community Admin on 22-Mar-2011 00:00

Hi James,

You can use MediaUrl of the image. You need to have an ImageGallery control on a page and you should  concat the host and the page on which you dropped the ImageGallery to the MediaUrl of the content item.

Best wishes,
Ivan Dimitrov
the Telerik team

Posted by Community Admin on 22-Mar-2011 00:00

Ivan,

I have this...

 newLink.NavigateUrl = "~/media-centre/image-gallery" + j.MediaUrl;

Which takes me to the gallery page but does not open the image as I would like.  What am I missing?


Cheers

Posted by Community Admin on 25-Mar-2011 00:00

Hello James,

Have you added ImageGallery widget on media-centre page, which I suppose is a valid page from your SiteMap?

Best wishes,
Ivan Dimitrov
the Telerik team

This thread is closed