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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Using the JQuery.Cycle plugin in vainUsing the JQuery.Cycle plugin in vain
Previous
 
Next
New Post
6/10/2014 2:56 PM
 

Thanks for your reply Sir,

I just want to get into full control of DNN! I am loving this platform and want to master it. I also heard of the Bootstrap Helpers module but refrain from using it until I get this JQuery.Cycle thing right... :)

Heard that if I add following code to my .ascx skin file everything is gonna be alright...but cant find any skin.ascx file in the skins/Gravity directory only 404Skin.ascx and skin.css. should I edit the 404Skin.ascx file?

<script runat="server">  Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load DotNetNuke.Framework.jQuery.RequestRegistration()

End Sub

</script>

Regards

 
New Post
6/11/2014 3:25 AM
 

Hi,

To get the jquery working it might be a good idea to do it the same way as the Dnn slide for the gravity skin...

If you go to :

Portals/_default>Containers>Gravity you will see a file called Banner.ascx, this is the file that is used to create the slide for the skin.

Instead of trying to load the jquery script in the skin file it is a better idea to create a dedicated container this means that the script will only load when needed ( when you choose the container )

I would suggest for you to create a new container and call it 'cycleBanner.ascx' or something like that in your container folder of your skin.

If you have a look at the code in the banner.ascx you will see:

<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %> 

You should be able to use the jquery.cycle slider in the same way.

at the top, this imports the clientresourcemanagement namespace

and the next line you should look for is:

<dnn:DnnJsInclude runat="server" FilePath="~/Resources/Shared/Scripts/slides.min.jquery.js" />

This line will include the jquery file you want to use

Place the jquery files in the skin folder under "js" for example.

then, in you new container add the following line:

<dnn:DnnJsInclude ID="DnnJsInclude1" runat="server" FilePath="js/ <jquery filename>.js" PathNameAlias="SkinPath" ForceProvider="DnnFormBottomProvider" />

this should then include the jquery file you want to use

I hope that it is a bit clear for you.

Regards,

Geoff

 


      
 
New Post
6/11/2014 6:38 AM
 

To add my 2 cents to this discussion:

1) I use a skin that uses jQuery, so there is no need to request it (as the skin - or, to be more exact: the menu - does it). If this is not the case, you can easily add a request to your skin file by adding the following lines at the top (below the "Register" directives):

<%@ Register TagPrefix="dnn" TagName="jQuery" src="~/Admin/Skins/jQuery.ascx" %>
<dnn:jQuery runat="server"></dnn:jQuery>

(see here for details)

2) I downloaded the plugin and put the file jquery.cycle2.min.js somewhere in my installation (eg /js/Cycle2).

3) I added a new injection using Will Strohl's Content Injection Module for DotNetNuke:

<script src="/path/to/jquery.cycle2.min.js"></script>

4) In an HTML module on the same page I entered the following HTML:

<div class="cycle-slideshow" data-cycle-fx="scrollHorz" data-cycle-timeout="2000">
   <img src="/path/to/image1.jpg" alt="..." width="..." height="..." boreder="..."/>
   <img src="/path/to/image2.jpg" alt="..." width="..." height="..." boreder="..."/>
   <img src="/path/to/image3.jpg" alt="..." width="..." height="..." boreder="..."/>
   <img src="/path/to/image4.jpg" alt="..." width="..." height="..." boreder="..."/>
</div>

Works like a charm....

Best wishes

Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
6/11/2014 9:45 AM
 

Thanks a bunch Geoff,

It is getting very clear.. Will put it to practice @once :)

Regards

 
New Post
6/11/2014 9:55 AM
 

Thanks a bunch for the 2cents Sir Michael :)

So there's no need to inject the cycling function() in the header?

<div class="mySlideShow" data-cycle-fx="fade" data-cycle-timeout="3000" data-cycle-speed="1000"> will work???

Can't wait to try it

Regards

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Using the JQuery.Cycle plugin in vainUsing the JQuery.Cycle plugin in vain


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