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:
<link rel="stylesheet" type="text/css" href="<%=skinpath%>/shadowbox/shadowbox.css" />
<script type="text/javascript" src="<%=skinpath%>/shadowbox/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
language: 'en',
players: ['img', 'html', 'iframe', 'qt', 'wmp', 'swf'],
autoDimensions: 'true'
});
</script>
First problem I had with c# skin file was “the name ‘skinpath’ does not exist in the current context”.
I switched the skin to vb and I get the following error in visual studio 2010:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
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.
Thanks for any help.
Everett