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...HTML moduleHTML module
Previous
 
Next
New Post
8/30/2012 5:28 AM
 

hi,

I just installed DNN 6.2. And it has page "Getting started" with a module that shows four different pictures. i do not have any additional modules installed, just fresh DNN 6.2. As i see from sources this module rotates pictures with JQuery script, something like

<script type="text/javascript">
    jQuery(document).ready(function ($) {
        /*  Banner Rotator Script ....

 

I do not understand how this script is associated with HTML module? because if I add a new page and add this module to this new page it copies this script along with module. Biut if i add just a new HTML module it does not create this script. Also script is not visible in module content, and by page source code script is located outside modult div tag.

Can anybody point how this works?

Thank you!

 

 
New Post
8/30/2012 1:49 PM
 
The script that you are seeing is part of the Default template for DotNetNuke, it is simply CONTENT within the HTML module for that rotating banners on the Getting Started page of a clean installation.

If you want to use that script in another HTML module you would need to copy it to that module, manually. I don't recall where that code actually resides, it might be in the HEADER/FOOTER of the module settings for the HTML module in question, as the Rich Text Editor in DNN tends to strip out javascript for security reasons, the way to get around that is to include JS in the header or footer setting for a module.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
8/31/2012 3:12 AM
 

Chris,

Thank you very much for your answer. If possible can you help to understand where this script is placed? I've looked into header and footer in settings and found both empty. Even if I add script to one of them this script will be inside container comments (i added alert call):

<!-- Start_Module_362 --><div id="dnn_ctr362_ModuleContent" class="DNNModuleContent ModDNNHTMLC">
 <div id="dnn_ctr362_HtmlModule_lblContent" class="Normal">
<a title="DotNetNuke Community" target="_blank" href="http://www.dotnetnuke.com/Community/Community-Overview.aspx"><img alt="DotNetNuke Community" src="/portals/0/Images/DNN/Community_en-US.png" /></a>
<a title="DNN World 2012" target="_blank" href="http://www.dotnetnuke.com/Products/Products-Overview/DotNetNuke-6-Product-Tour.aspx"><img alt="DNN World 2012" src="/portals/0/Images/DNN/DNNWorld_en-US.png" /></a>
 </div>

</div><script type="text/javascript">
1111");
</script><!-- End_Module_362 -->

but for the out of the box module it is outside. but when i insert this module to different page this javascript is correctly copied. so DNN knows somewho that it has to be copied.

 

 
New Post
8/31/2012 3:50 AM
Accepted Answer 
got it. it is actually part of "Container settings"
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...HTML moduleHTML 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