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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0What are the DNN Core Code?What are the DNN Core Code?
Previous
 
Next
New Post
10/14/2008 6:31 PM
 

Hi there,

I'm new to DNN, so have some entry level questions. Your help is greatly appreciated.

I'm reading the book "Professional DotNetNuke 4". It has tips like "Don't change the DNN core codes, only extends them" (it's my understanding, may not be accurate).

My questions are: what are the DNN core codes? Are all the codes coming with the Source package considered core except release.config/web.config?

If I want to slightly alter how a user control under the Website/admin folder work, can I just make the changes to the control or should I create a new user control?

Also where are the source code for the Modules? for example, under Website/DesktopModules/Blog/Blog.ascx, it has page derective like  Inherits="DotNetNuke.Modules.Blog.Blog", but where can I find its code behind?

Thank you very much!

 

 

 
New Post
10/14/2008 7:29 PM
 

in essence everything is core code - to upgrade dotnetnuke you copy the updated files over the existing site, so any changes you've made would be lost (or you'd have to reapply them everytime you upgraded). The recommended way to do things is to create modules, which are an extensibility point. If a wanted to alter the blog module, I'd download the source package from the downloads page, and then update it, alter it's .dnn file and rename it i.e."yy_blog", and install it. That way you can upgrade the core without your code being updated.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/14/2008 9:03 PM
 

in addition, you should modify the namespace using yourcompany instead of dotnetnuke, this prevents from any conflict, if both modules are installed aside of each other.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/15/2008 9:48 AM
 

Thank you very much, Sebastian. I think that's a very good idea to modify the namespace so the module is kind of become my own :).

 

 

 
New Post
10/15/2008 11:27 AM
 

Thank you very much, Cathal! The concept of the "Core Code" becomes much clearer to me now.

I'm reading the chapters about developing modules in the book now, so I have a good understanding on how to develop a standard module or slightly modify an existing module and rename it or alter the namespace to make it my own.

But about the user controls under Website/Admin/Authentication, they are not regular modules, right? Regular modules are all under Website/DesktopModules. For example, if I want to change the way how the DotNetNuke.Modules.Admin.Authentication.Login control work, which way below is better?

1. make changes to the current Login control and maintain it through upgrades, either by reapply the changes or keep the file unchanged by the upgrades.
2. make a new user control, use the new user control at place where DotNetNuke.Modules.Admin.Authentication.Login is used right now.

Also which dll does the DotNetNuke.Modules.Admin.Authentication.Login build to? I didn't find it in the dlls under \Website\bin.

Thank you very much!

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0What are the DNN Core Code?What are the DNN Core Code?


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