There are two ways to use FastShot from other modules:
Implicit PatchingIf you include a FastShot module on a page, all links from any other module on same page that have the lightbox CSS class will be automatically patched to open in LightBox. This method is far more easy that the method with the Skin Object in next section. ExampleLet's assume we want to patch images from an HTML module. We add an thumbnail image to the html module, then define a link that points to the full size image and set lightbox as the link class. The html source could look like this <p> Then, all we have to do is include a FastShot module on the page. We can leave the FastShot module empty and hide the container and everything so the user won't notice it's there.
Note that when you define the link over the image the Rich Text Editor
may insert calls to LinkClick.aspx instead of the actual path
to image. The FastShot patching will work in this scenario too.
Skin Object PatchThis is a Skin object that can patch images on the page or from individual modules from the page to display with the LightBox script. It will patch all images that are links and have the lightbox class. The link must be to another image which will be open inside the LightBox. To use the Skin Object Patch,
1. Open the DNN Skin used on the page that contains the
modules you want to patch
<%@ Register TagPrefix="avt" TagName="FastShotPatchModule" 3. Include the Skin Object that does the patching; put the line below anywhere in the file <avt:FastShotPatchModule runat = "server" PatchModuleId = "123" /> The PatchModuleId identifies the module to patch images from. If you want all modules on the page to be patched, set this parameter to -1 |