26
DotNetNuke Overview Stan Schultes Enterprise architect / application developer Conference speaker, mentor, trainer Contributing Editor, Visual Studio Magazine Founder - .NET Pub Club (netpubclub.net ) Microsoft MVP www.vbnetexpert.com [email protected]

DNN Intro v2.1

  • Upload
    -

  • View
    235

  • Download
    0

Embed Size (px)

Citation preview

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 1/26

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 2/26

Presentation Outline

Introduction & History

Installation

Technical Overview

Portal Features & Management

Project Organization & Internals

Private Assemblies Customizing / Tips & Tricks

Project Futures

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 3/26

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 4/26

Project History & Relatives

IBuySpy web portal, IBS Workshop

Rainbow (mid-’02) & DotNetNuke (Dec ’02) 

 ASP.NET Starter Kits (www.asp.net): Portal

Community

Commerce

Reports

Time Tracker

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 5/26

Installation Requirements

Current: v2.1.2

Requires:

Win2K, WinXP, or Win2K3 IIS installed and operational

.NET Framework V1.1

 Access or SQL Server 2000 / MSDE

SMTP configured if you want to use mail  VS.NET 2003, or custom build environment (no

SDK version available today)

DNN is written in VB.NET, but you can writemodules (.DLLs) in any .NET language

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 6/26

Demo – DNN Installation

Installation Process: Unzip the code to a directory, give ASPNET/Network Service

account permissions

Create a virtual directory

[ Create an empty SQL database, set up DB account ]

Edit web.config

Browse to http://localhost/vdir

Change Host and Admin passwords! Upgrade Process:

Back up your current configuration

Unzip the new code into the directory structure

Browse to the vdir

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 7/26

What’s New in Version 2 

Improved admin user interface

Data Provider Model

Business Logic Layer Skinning

Recycle Bin

Scheduler

Exception Management

Backward compatibility for modules using theold data architecture

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 8/26

Technical Overview

Framework application

Modular construction

Dynamically loaded user controls Data access layer uses Provider model

Business logic layer

Online portal configuration by role Multi-portal: parent or child configuration

Portals are skinnable

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 9/26

Demo – DNN Features

Portal Management

Tabs & Modules

Roles & Users

Files & File Uploads

Child Portals

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 10/26

Managing Portals

Host and Admin Accounts

Hosting Configuration, Modules

Multiple Portals, Aliases Forms Authentication vs. Windows

 Authentication

Service Directory: Vendors & Banner

 Advertising Chargeout process

Bulk email (portal users)

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 11/26

Tabs & Modules

Tabs = portal organizational units

Modules = information containers

Module Options

Info access controlled by Roles andUsers

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 12/26

Roles & Users

Roles & Users - created by Admin role

Role usage is up to you

User registration: none, private, public,verified

Specify required registration fields:

 Admin User Accounts, edit mode

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 13/26

Files and File Uploads

Shared directory per portal (\portals\n\)

File security: there isn’t any by default! 

Set uploadable file types on Host HostSettings

Set File Upload Roles on Admin FileManager

Use the Sync link on File Manager if youmanually copy files into directories

Decompress Zip files checkbox

Host file uploads vs. portal file uploads

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 14/26

DNN in Design Mode

DNN v2 built with VS.NET 2003

Change .sln and .webinfo file if not

default DotNetNuke vdir Release mode vs. Debug mode

 All standard modules are integrated in

.sln Build private modules in any language – 

as separate project.

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 15/26

Project Organization

Directory structure:

 Admin – user controls for all system pages

Components – business logic layer

Controls – title, header, footer controls

DesktopModules – module addins

Portal\n\  – content directories by portal Providers – data access providers

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 16/26

Portal Internals

web.config

Global.asax

HTTP Handler and portal aliases

Default.aspx (DesktopDefault redirects)

Everything else is .ascx (user controls) Controls: SolPart menu, FreeTextBox,

SharpZipLib

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 17/26

Data Access / Business Logic

Data access based on a Provider model

Databases supported:

 Access (default), SQL Server 2000/MSDE

(future) mySQL, Oracle

Business Logic Layer:

 Abstracts the data layer from the portal

Custom Business Object (CBO) helper

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 18/26

DotNetNuke Architecture

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 19/26

Making the Portal Your Own

Containers

DNN V2 is now skinnable by portal!

CSS Style sheet

Modify the core code

Integrate custom modules Build your own private assemblies

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 20/26

Demo - Customization

CSS Style Sheet

Containers

Skinning

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 21/26

Demo – Install a private assy

Build the assembly separately

Package as .zip with .dnn manifest file

Upload to portal from Host account Configure the module

Four examples are provided: Page Title

Survey Users Online

Whois

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 22/26

Building a Private Assembly

Find a similar standard module and copy it

Database tables & SPs

Data component Create user controls for display & editing

Style sheet additions

Project integration options PA installation files & docs

 Article in Dec 2003 Visual Studio Magazine

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 23/26

DNN Tips & Tricks

Try to minimize core customization

When upgrading – compare codebases

& eliminate obsolete code Use VSS for code & build control

Interactions between logins w/ multiple

instancesWatch forums & bug lists for fixes (see

#1 above)

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 24/26

Project Futures

Localization – static / dynamic

Site Search

Friendly URLs Private Assembly Architecture

Windows Authentication / Tabs SSL

Enhanced File Management / Security Hierarchical portals

Web Farm Support

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 25/26

Questions?

8/3/2019 DNN Intro v2.1

http://slidepdf.com/reader/full/dnn-intro-v21 26/26

Resources

www.dotnetnuke.com

http://www.fawcette.com/vsm/2003_12/maga

zine/columns/gettingstarted/ www.asp.net/forums

www.gotdotnet.com/community/workspaces

DNN ML: www.cyberhuis.com

DNN XXL: arkadic.healthship.com www.asp.net

www.rainbowportal.net