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...Module class not being appliedModule class not being applied
Previous
 
Next
New Post
12/17/2010 7:32 PM
 
I've created a div with runat="server" to drop in some text with the RADEditor module.

The div looks like this in the skin html file:

<div id="HeaderText_innerPane" class="HeaderText_innerPane" runat="server"></div>

The idea is to drop a title into this div, which will appear over some content in another pane.

But after dropping in the title text ("Dr. Purewal")  it doesn't get the styling defined by class="HeaderText_innerPane".  The text gets dropped into a div within the dnn:HeaderText_innerPane div and gets assigned the Normal class.  The HTML at the browser looks like this:


div id="dnn_HeaderText_innerPane" class="HeaderText_innerPane"
    <a name="679"></a>
    <div id="dnn_ctr679_ModuleContent" class="ModDNNHTMLC">
        <div id="dnn_ctr679_HtmlModule_lblContent" class=Normal"> Dr. Purewal </div>
    </div>
</div
>

The "Dr. Purewal" text is getting assigned the Normal class instead of HeaderText_innerPane.  

Does anyone see what's going on here?  Why is a link getting inserted into my HTML and why doesn't my assigned class have any effect on the text I entered through the module?

Thanks for any help.

Steve A
 
New Post
12/18/2010 7:56 AM
 
did you create the div in the skin? you will need to create it inside your module. However, in your current situation you should be able to style your class by using "HeaderText_innerPane Normal"

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/18/2010 10:28 AM
 
Did you create the div in the skin? you will need to create it inside your module.

Yes, the div looks like this in the skin html file:

<div id="HeaderText_innerPane" class="HeaderText_innerPane" runat="server"></div>

However, in your current situation you should be able to style your class by using "HeaderText_innerPane Normal"

Yes, but how would I know that without looking at the source and seeing what the RADEditor produced?  The whole idea of supplying a class with the div at the skin is so that you know what class to style. And how do I know that the RADEditor will keep using the Normal class, since I have no idea why it chose Normal in the first place?

Steve A

 
New Post
12/19/2010 6:18 AM
 
there is nothing created by the editor except the content itself, but the container and the module do inject some html as well, you need to deal with.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/19/2010 12:35 PM
 
Yes.  I've found another way to to style the content is to switch the editor to HTML mode and have it insert the content in a paragraph with a class:

<p class="HeaderText_innerPane">Dr. Purewal</p>

Then I can style the paragraph directly from skin.css.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Module class not being appliedModule class not being applied


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