Sunteți pe pagina 1din 24

EBZ308: Building Web

Sites With MSCMS 2002


And VS.NET
Scott Farquharson
Program Manager
Content Management Server
Microsoft Corporation
Agenda
 CMS Development Model
 Demo – Templates and Postings
 Template Changes
 Object and Data Model
 CMS VS.NET Integration
 Wizard, Dialogs and Toolbars
 Demo – Show Integration
 Demo – Build a Template
Microsoft Content
Management Server
 Enterprise content management system
 Enables dynamic, data driven Web sites
 Template based publishing for non technical
business users
 Integrated with Web development tools for rapid
deployment
 High performance and scalability meet the
requirements of the most demanding Web sites
 Part of the .NET Enterprise Server product family
CMS
 CMS 2001
 Quickly and efficiently build, deploy and
maintain Internet, Intranet and Extranet
web sites.
 CMS 2002
 … and leverage the power of VS.NET to
build integrated, scaleable e-business
solutions based on Web Services
CMS 2001 - Templates
 Template ASP file stored in database
 Must be based on ASP (vbscript)
 Ancillary template files (.inc etc) stored on
file system
 Two pass template update process
 Importing Template File produces
Placeholder Definitions but now they need
to be configured.
 One Placeholder Server Control
CMS 2002 - Templates
 All template code assets move to
the file system
 Based on ASP.NET or ASP
 One-pass template creation
 Template gallery items reference the
T file on the file system
 Templates have schema information and
can be “connected”
 Redefinition of “Navigation” Templates
demo

Basic CMS Constructs


CMS 2002 Definitions
 Template Gallery Item / Objects (in CMS)
 Selected by Authors as the containers for content
 Connects Template Files and Placeholder Definitions
 Template File (.NET ASPX File)
 Contain CMS Placeholder Server Controls
 Code to interact with CMS Publishing API, navigation,
backend system, etc.
 Placeholder Server Controls (.NET Server Controls)
 Talk to Placeholder Objects to render / author content
 Placeholder Objects (in CMS)
 Holds on to the content
 Nice object model to interact with at run time
 Placeholder Definitions (in CMS)
 Defines the content schema (XML, HTML, etc)
 Properties (validation or not, bolding, etc)
CMS 2002 Data Model (Run Time)

Request
ISAPI Filter CMS Server
File System IIS: Template Template Gallery Item
Template File (aspx file)
File + Posting
Template File
On Start Page:
Auth Module, Custom Properties
CMS Context (this.***)
Ref to Placeholder
Definition Collection
Navigation,
CMS PAPI,
ASPX Code CMS Context

Placeholder Object Placeholder Definition
HTML
Placeholder
Server Placeholder Object Placeholder Definition
Control

Custom
Placeholder
Server
Control

Content Schema

CMS Database
CMS 2002 Data Model (Design Time)

CMS Server
File System Template Gallery Item
Template File (aspx file)
Template File
On Start Page:
Auth Module, Custom Properties
CMS Context (this.***)
Ref to Placeholder
Definition Collection
Navigation,
CMS PAPI,
ASPX Code CMS Context

Placeholder Definition
HTML
Placeholder
Server Placeholder Definition
Control

Custom
Placeholder
Server
Control

Schema

CMS Database
CMS 2002 Object Model
Channel
Custom Prop Defs
.NET Web Applications:
CMS PAPI Entry Point Posting
CmsHttpContext Placeholder Object
Custom Prop Values

Template Gallery
.NET/COM Win 32 Applications:
Template
PAPI Entry Point
Custom Prop Defs
CMSApplicationContext
Placeholder Defs

Resource Gallery
.ASP Web Applications: Resource
CMS API Entry Point
Searches
Autosession
User
Error (asp)
Exceptions (.NET)
VS.NET Integration
 CMS Enhancements in VS.NET
 CMS VS.NET Projects
 Placeholder Definitions and Binding
 Custom Properties
 Leverage Native Functionality include
 VB, C# ASPX (Template) Development
 VS.NET Debugging
CMS VS.NET Projects
 .NET Project
 C#, VB.NET Web
Apps and Web
Services Project
 Existing Projects:
“Enabled as CMS”
 .ASP Projects
 Empty Web
Projects
Template Development
 Template Gallery
Explorer
 Create, Rename,
Update, Delete,
 Connected Templates
 Check In/Out
 Template “Wiring”
Custom Properties
 Programmatic
“Hints” for Code
 Name/Value
Pairs (Text or Selection)
 Text or List
 Define Type in
the Template
 Define Value in
the Posting
Placeholder Definitions
 Each Template
contain a set of
Placeholder
Definitions
 Each Definition
is a data field in
a posting
 Content Types:
HTML, Image,
XML, etc
Placeholder Server Ctrls
 Drag and Drop Server Controls
 Bind Presentation to Content (Placeholder Definitions)
demo

CMS VS.NET Integration


demo

Building Templates
Template Recap
 Create Template Gallery Item
 Create Placeholder Definitions
(to hold the content)
 Create Template ASPX File
 Connect to Template Gallery Item
 Add Placeholders Server Controls (to
display content)
 Connect Placeholders Server Controls to
Placeholder Definitions
 Add Code
Other Sessions
 EBZ309 Building Personalized Web
Sites, April 11, 4:45, Rm 217-219
 EBZ307 Building Multilingual Web
Sites with MSCMS 2002, April 12, 9:00,
Rm R06
 CLB310 Integrating MSCMS and SPS,
April 12, 10:45, Rm La Louisiane C
 EBZ401 Building Web Services for
MSCMS 2002, April 12 3:15, Rm R06
Questions?

S-ar putea să vă placă și