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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...How to start from source codeHow to start from source code
Previous
 
Next
New Post
1/13/2011 8:35 AM
 
Hi, every guys.
I am a utterly freshman for DotNetNuke.
1. I find most document teach me how to install it from install version, but I am used to research it from source code. Where I can find document about source code, such as structure introduction, how to extend, etc.
2. Now I've download the source code for 5.6.0 version, and there are 3 solution in it. But when I try to open them in VS2008. The DotNetNuke_community is unavailable; if I do in VS2010, more project is unavailable. Why?
thanks very much in advance.
 
New Post
1/13/2011 4:03 PM
 
Hi
The solution uses IIS so you have to run VS in Admin mode.  Then oince you get it open you simply do a build (Ctrl+Shift+B) and then run the website.
There are quite a few books on Amazon now for building extensions and plenty of examples online.

Philip Beadle - Employee
 
New Post
1/20/2011 11:59 AM
 
You not only have to run Visual Studio as an Administrator.  You also need to insure that certain IIS features are installed on your PC and that ASP.NET is installed. To turn on the appropriate IIS features, go to the Control Panel and select Programs and Features.  In the navigation pane, select "Turn Windows Features on or off" and from here expand "Internet Information Services" and do the following:

(1) Find "Web Management Tools" -> "IIS6 Management Compatibility".  Then check the "IIS6 Management Console" and "IIS Metabase and IIS6 configuration compatibility".

(2) Find "World Wide Web Services" -> "Application Development Features".  Check "ASP.NET" - doing this will also automatically check ".NET Extensibility", "ISAPI Extensions" and "ISAPI Filters".

Click OK, wait for the install, and then relaunch VS2010 from the Windows Start menu by right clicking on it and selecting "Run as Administrator".

Good luck!
Dan
 
New Post
1/20/2011 3:28 PM
 
Best thing to do is run the Web Platform Installer :)

Philip Beadle - Employee
 
New Post
1/21/2011 8:37 AM
 
Hey there,

To be totally honest - unless you have a whole lot of spare time - and an very deep understanding of .net development - looking at the dnn source code will do very little to help you understand how things work.

If you do want to go there - the starting point is default.aspx and default.aspx.vb in the /website/ folder - these are effectively the first files that are called by EVERY page request in a dotnetnuke site -- well along with global.asax.vb in the /website/App_GlobalResources/ folder - and any defined http handlers.  

The system is broken into a number of different components some compiled into the core api, some as modules and provides - most of which are compiled into seperate dll's  and some parts compile on demand as part of the main web application.

As a result before you try to open the solution you need to do some setting up if you want to work with ALL the code.

Install all the source code files into a new folder 

The code that is in the Website folder contains all the code and compiled dll's that make up a LIVE site ... you need to setup IIS and getting the code based on this site RUNNING and live as a website - http://mydnndev.loca/ or some such.

You should now edit the solution's .snl files in a text editor and find the parts that define where this site is hosted:

open

DotNetNuke_Community.VS2008.sln

and look for:

= "DotNetNuke_Community", "http://localhost/DotNetNuke_Community",

and change it to:

= "DotNetNuke_Community", "http://mydnndev.local/",       or whatever you called your running site

This will allow visual studio to correctly access the Web Application elements and properly connect to them.

You should now be able to run Visual Studio in Administrator mode and open 

DotNetNuke_Community.VS2008.sln

=========================================================================

Now having said this - if what you really want to do is understand how to extend dotnetnuke I would suggest having a look at one of the programming books  http://www.wowebook.com/dot-net/profe...   is a good place to start.

The thing to understand is that as a rule you will NEVER modify any of the code in the DotNetNuke source code install.  Doing so would break any upgrade paths etc

Instead what you do is create NEW elements that can PLUG IN to the core  - these elements come in a number of flavours with varying levels of complexity.

the first is SKINS which are really just html/aspx templates that control layout and style guide css files.

the second are MODULES which add functionality to a site in the form of modules that can be assigned to run on a page.

the third are SKIN OBJECTS which are used to add new functionality to the SKIN.

the fourth are PROVIDERS with are used to extend lower level CORE functionality in areas such as AUTHENTICATION, HTML EDITING, SEARCH, CACHEING, NAVIGATION etc

Westa
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...How to start from source codeHow to start from source 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