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...Using Modules a...Using Modules a...Using Will Strohl lightbox in HTML moduleUsing Will Strohl lightbox in HTML module
Previous
 
Next
New Post
6/24/2013 4:48 PM
 

Hello,

Can anybody tell me how to use the jquery Fancybox in html module? I would like to add an image to the html module and let it popup like the Will Strohl lightbox module. I am totally new to jquery, so I don't know were to start. I have tried google for many times, but can't find an easy solution for this. 

Hope somebody can help me.

Many thanks, 

 

 

 

 
New Post
6/25/2013 10:35 AM
 

Hi,

Perform the below mentioned steps

  • First implement theat in any plain HTML page, if that will start working then
  • upload your jquery files on Dotnetnuke site and add the file refrence by going to page setting in the "Page Header" section
  • Add HTML module on page and paste the required HTML
 
New Post
6/25/2013 10:52 AM
 
Hi,

download Will Strohl's Content Injection Module (http://wnsinj.codeplex.com/), install it, place an instance of it on the page where you want to have this effect and add an injection like this (replace square brackets by angle brackets):

[!-- Add fancyBox --]
[link rel="stylesheet" href="pathTo/jquery.fancybox.css?v=2.0.5" type="text/css" media="screen" /]
[script type="text/javascript" src="pathTo/jquery.fancybox.pack.js?v=2.0.5"][/script]

[script type="text/javascript"]
$(document).ready(function() {
$(".myFancyBoxClass").fancybox({
});
});
[/script]

For special effects see the FancyBox documentation.

In the HTML module (on the same page), add a link to the large image around the thumbnail, like

[a href="pathTo/LargeImage.jpg" target="_blank" class="myFancyBoxClass"][img src="pathTo/Thumbnail.jpg"][/a]

That's it.

Note: The class of the link has to correspond to the class in the script ("myFancyBoxClass" in this case). If you assign this class to more images, it will work for all and you will be able to move through all these pictures with this class inside the lightbox.

Best wishes
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
6/27/2013 8:41 AM
 

Thank you very much for your answers.

@Michael I have followed your steps and it works perfect. 

Can you please be a little more specific with this: "If you assign this class to more images, it will work for all and you will be able to move through all these pictures with this class inside the lightbox

I have 3 images in the HTML module. All three are poping up, but can't scroll true them.

 
New Post
6/27/2013 10:26 AM
 

Jan,

if you hover over the images on the left and right side you should get some arrows that allow you to scroll through the images when you click them.

Best wishes
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Using Will Strohl lightbox in HTML moduleUsing Will Strohl lightbox in HTML module


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