lightroom effect for skin
Last Post 05/20/2012 2:10 PM by Joseph Craig. 1 Replies.
Author Messages
everett31
Posts:


--
05/19/2012 10:50 AM  
I’m looking for a way to add the lightbox effect to a skin file. I would like the end user to have the ability to add a link in a standard html module with the appropriate tag (rel=’shadowbox’ in this case) and have the item open via lightbox. I’m currently using the following after the register tags in skin file:


<script type="text/javascript" src="<%=skinpath%>/shadowbox/shadowbox.js"></script> <br /> <br /> <script type="text/javascript"> <br /> Shadowbox.init({ <br /> language: 'en', <br /> players: ['img', 'html', 'iframe', 'qt', 'wmp', 'swf'], <br /> autoDimensions: 'true' <br /> }); <br /> </script> <br /> <br /> First problem I had with c# skin file was “the name ‘skinpath’ does not exist in the current context”. <br /> <br /> I switched the skin to vb and I get the following error in visual studio 2010: <br /> <br /> The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). <br /> <br /> Is there an existing html control that supports lightbox effect or a way to implement the effect? This is my first attempt at DNN and this has me chasing my tail. <br /> <br /> Thanks for any help. <br /> <br /> Everett <br />
Joseph Craig
DNN MVP
Posts:11667


--
05/20/2012 2:10 PM  
There are modules available that do this.

On the commercial side, I've used Mandeeps' Live Content module a lot. I like it! I believe that ZLDNN also has a similar module.

Also ... http://www.dotnetnuke.com/Resources...posts.aspx shows how to use lightbox effects with Ventrian's News Articles module. I expect that the techniques can be extended to other modules.

Here is another one: http://dnnuke.blogspot.com/2007/12/...image.html

Pretty much anything that you can do with jQuery and jQueryUI can be incorporated into skins and modules.

Joe Craig, Patapsco Research Group
Complete DNN Support


---