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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Module header content wrapped with <span> tagModule header content wrapped with tag
Previous
 
Next
New Post
8/7/2009 4:04 AM
 

Hi, we thought we'd try and use the module Header content to enter some basic HTML such as:

<h4>Main Menu</h4>

but when this renders, the module header content is wrapped in a span:

<!-- Start_Module_372 --><span class="Normal"><h4>Main Menu</h4></span>

Does anyone know where this is injected and how we can stop it adding the span or change it to use a <div>? The reason i ask is that it doesn't validate against W3C validator.

Thanks
Dan

 
New Post
8/10/2009 1:49 PM
 

You can modify the source code, but I don't personally recommend it.  It prevents the ability to upgrade without reconstructing all your modifications, and may even prohibit upgrading altogether.

You can modify the container so it applies an h4 tag instead of an h1 or h2.  If you set up the title for the container as follows you won't have any problems with validation:

<div class="TitleHeadArea">
  <h2>
   <object id="dnnTITLE" codetype="dotnetnuke/server" codebase="TITLE">
     <param name="CssClass" value="TitleHead" />
   </object>    
 </h2>
</div>

Then in your container.css you can address the css font styles for the title by placing "h2 .TitleHead" or in your case "h4 .Titlehead" and adding the appropriate styles you want.  This would be the easiest way to go without modifying dnn core code.  This is also the html/object based skinning method, you could address the issue with similar approach in an .ascx file, it just depends on how your skin was designed.  Also, don't just edit the container, make a copy of it with a new name so you can still use the original if needed, or at least have a working copy to reference if anything goes wrong.

PS. Also using this method, you can use the container in many places, and if you decide to change the style of the header, you only have to edit in one place, the container.css file, to have the changes updated to all instances of modules using that container.  So, it's more efficient than adding html tags individually to the module title via the module settings page or the inline text editor.


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Module header content wrapped with <span> tagModule header content wrapped with tag


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