Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...lightbox effectlightbox effect
Previous
 
Next
New Post
5/19/2012 12:34 PM
 

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

 
New Post
5/22/2012 11:40 AM
 
I tried what you have in a vb skin and it worked fine, minus that It said shadowbox.js couldn't be found because I don't have that file.

Not sure why you are getting errors but I do know that you have a / after skinpath but that tag will automatically generated a / after it so you don't need that or it will have 2.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...lightbox effectlightbox effect


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out