Jiveabillion
-
11/5/2011 12:58:39 PM
RE:Lightbox Image Galleries on Demand
We might need a little bit more information to give you a complete answer. Can you point us to an example where you have seen this before?
Do you basically want it so that the image gallery is not visible until you click on the button?
The easiest way to do this would be to make your "Image Gallery" button open a new window that contains your gallery. I will explain how to do it this way.
1. Create a new template for the page that will show the gallery. Don't add the lightbox webpart yet.
2. Create a page that uses your new template. You can put it in a folder like "Special Pages".
3. Add the lightbox gallery webpart to your new page. Configure the settings the way you like, but leave the path empty until step 4.
4. In the Path for the content, use a querystring macro like "{%contentpath%}/%". Save the web part.
5. On the page where you are going to put the "Image Gallery" button. Add a static html webpart that has something like this on your button:
onclick="window.open('/specialpages/yourgallerypage.aspx?contentpath={%CurrentDocument.NodeAliasPath%}');
6. Now when you click the button, it should open a new window with the gallery and pass it the path of the page that the button is on which will, in turn, set the content path to select all of the images in the folder below that page.
If you don't want it to open a new window, you'll have to figure that part out yourself for now. I hope this helps.
|