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...Adding code in the HTML moduleAdding code in the HTML module
Previous
 
Next
New Post
6/16/2010 5:09 PM
 
I need to add popover code to an HTML module on my site. The instructions say to add the code after the first <body> tag but when I pull up the source screen there is no <body> tag or <head> etc. How do I get the HTML headers and such to display so I can add the necessary code?
 
New Post
6/16/2010 5:55 PM
 
Advice on how to insert code into a page usually assumes you're directly editing HTML.  This is not the case when you're working with a CMS (DotNetNuke or any other)... so a bit of translation is required.  Here's a couple of relevant thoughts.
  • You'll never see a body or head tag when working with the application.  A DotNetNuke page is functionally composed of modules on a page and technical details ("programming") are purpoasefully obscured.
  • There is a page level setting in the Advanced section called "Page Header Tags", the help reads as follows:
    Enter any tags (i.e. META tags) that should be rendered in the "HEAD" tag of the HTML for this page.
    You can usually put this kind of stuff in there if its necessary, it will impact ONLY the current page.
  • HTML and javascript that are "site wide" can also be referenced in the skin for the site... this is sometimes more appropriate, depending upon purpose.
  • And you can also use the HTML module (as you indicated).  Usually, this kind of code simply has to be rendered ahead of the page items which depend on it, so as long as the HTML module cotaining the code is high on the page you'll be OK.

Every technique has advantages / disadvantages.  Might be helpful to know more about what you're including?


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
New Post
6/17/2010 7:29 AM
 
Thank you Scott. That helps me a lot. I do appreciate it
 
New Post
6/17/2010 4:15 PM
 
I'm adding a popover script for an exit popover on our site's home page. It requires inserting code after the first tag, into the tag, and finally below the tag.
 
New Post
6/18/2010 6:05 AM
 
Looks like the text above omitted the type of tags I was referring to. The software requires inserting code after the first HEAD tag, then in and below the first body tag.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Adding code in the HTML moduleAdding code in the 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