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...Upgrading DNN P...Upgrading DNN P...Automatic class injection mess... wth??Automatic class injection mess... wth??
Previous
 
Next
New Post
6/22/2010 5:56 PM
 
it's injected in ModuleHost.vb (DNN Source version)

Here's the code:
Protected Overrides Sub OnPreRender(ByVal e As System.EventArgs)
            MyBase.OnPreRender(e)

            Dim strModuleName As String = Me.ModuleControl.ModuleContext.Configuration.DesktopModule.ModuleName
            If Not strModuleName = Nothing Then
                strModuleName = strModuleName.Replace(".", "_")
            End If
            Me.Attributes.Add("class", strModuleName + "Content")
        End Sub

 
New Post
6/23/2010 6:20 AM
 
Thanks for the pointer Timo! Now if someone knows where's there's a basic guide to setting up DNN source, I'm interested getting my hands dirty.. it's about time I did! Rob
 
New Post
6/23/2010 12:51 PM
 
See above comments especially from Timo...

Ken Grierson
DotNetNuke Corporation
Test Lead
 
New Post
6/23/2010 1:38 PM
 
As Timo indicated the class was added at his request - http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=8678&PROJID=2

The addition of the Content to the name was added here - http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=8931&PROJID=2

which was modifed here to replace "." by "_" -  http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=9307&PROJID=2

Which basically brings us to where we are today.

Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
6/23/2010 11:35 PM
 

Thanks for the information Charles.

I can see it is a feature that is being improved over time. My current ticket at Gemini suggests adding an on-off switch for it. I hope it's a positive suggestion.

I support the idea of adding features like this to the core. Timo's full of good ideas and the ability to inject classes is well-intentioned, but fraught with issues. If I had taken the final leap to DNN5 earlier, I would certainly have brought this up earlier as well.

It also opens a wider discussion: Whether the core should add new features like this as permanent, or as optional functionality. I'm highly in favour of creating features as options.  It avoids immediate problems, such as I'm facing now, and it creates a more flexible framework at the same time.

I'll just add that to the ticket so it might be considered.
Regards
Rob

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Automatic class injection mess... wth??Automatic class injection mess... wth??


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