Opening an image in image gallery
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.
Anybody got any ideas on this?
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
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
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